4 Replies - 1074 Views - Last Post: 12 August 2011 - 08:37 AM

#1 princess_miaka  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 09-August 11

6800 assembly code

Posted 09 August 2011 - 06:26 PM

what is the error in this code because
im trying to get an input
of simple 8 bit addition but
sad to say i cant

the ldaa below and just highlight then..

LDAA $40
ADDA $41
STAA $42
SWI



please i am begging for a help
my report will be on thursday..



any help to me would be much appreciated
Is This A Good Question/Topic? 0
  • +

Replies To: 6800 assembly code

#2 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10803
  • View blog
  • Posts: 40,257
  • Joined: 27-December 08

Re: 6800 assembly code

Posted 09 August 2011 - 06:27 PM

Moved to Assembly. What error message are you encountering?
Was This Post Helpful? 0
  • +
  • -

#3 princess_miaka  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 09-August 11

Re: 6800 assembly code

Posted 09 August 2011 - 06:32 PM

i was still at the beginning
there is no output
Was This Post Helpful? 0
  • +
  • -

#4 princess_miaka  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 09-August 11

Re: 6800 assembly code

Posted 09 August 2011 - 06:38 PM

i have found also from the net as an example to that code
(0040) = 38
(0041) = 2B
(0042) = 63

how come 63 is the result because when i compute it
the result is 81

38
+ 43

This post has been edited by princess_miaka: 09 August 2011 - 06:41 PM

Was This Post Helpful? 0
  • +
  • -

#5 Aphex19  Icon User is offline

  • Born again Pastafarian.
  • member icon

Reputation: 615
  • View blog
  • Posts: 1,873
  • Joined: 02-August 09

Re: 6800 assembly code

Posted 12 August 2011 - 08:37 AM

View Postprincess_miaka, on 09 August 2011 - 07:38 PM, said:

i have found also from the net as an example to that code
(0040) = 38
(0041) = 2B
(0042) = 63

how come 63 is the result because when i compute it
the result is 81

38
+ 43


0x38 (56)
+
0x2b (43)
=
0x63 (99)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1