Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. lda #0
  2. sta $02
  3. sta $03 ;01: a = 0x0000 ; a = 0
  4. tay
  5. lp: ;02: loop:
  6. ldx $03 ;03: b = a >> 8 ; b = upper byte of address
  7. lda $6100,x ;04: x = mem[0x6100+b] ; load byte from [0x6100 + b]
  8. ;05: b = a & 0xFF ; b = lower byte of address
  9. lda $6200,y ;06: x = mem[0x6200+b] ; load byte from [0x6200 + b]
  10.  
  11. lda ($02),y ;07: b = mem[a] ; b = load byte at from mem[a]
  12. tax
  13. lda $6300,x ;08: x = mem[0x6300+b] ; load byte from [0x6300 + b]
  14.  
  15. iny ;09: a = a + 1 ; increment a
  16. bne lp ;10: goto loop ; loop
  17. inc $03
  18. bne lp
  19.  
  20. beq lp ;repeat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement