# 6800 assembly code

Page 1 of 1

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

### #1 princess_miaka

Reputation: 0
• 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

the ldaa below and just highlight then..

LDAA \$40
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

• Games, Graphs, and Auctions

Reputation: 11449
• Posts: 43,173
• Joined: 27-December 08

## Re: 6800 assembly code

Posted 09 August 2011 - 06:27 PM

Moved to Assembly. What error message are you encountering?

### #3 princess_miaka

Reputation: 0
• 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

### #4 princess_miaka

Reputation: 0
• 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

### #5 Aphex19

• Born again Pastafarian.

Reputation: 616
• Posts: 1,873
• Joined: 02-August 09

## Re: 6800 assembly code

Posted 12 August 2011 - 08:37 AM

princess_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)