Guest User

Untitled

a guest
Nov 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. PRT_LOW = $FD
  2. PTR_HIGH = $FE
  3. * = $1000
  4.  
  5. start
  6. lda #$28 ; Load value, add with carry and store the result
  7. adc PTR_LOW
  8. sta PRT_LOW
  9. bvc end ; Branch on overflow clear, the V flag is set if A >= #$80
  10. ; instead of a "regular" overflow (more than #$FF)
  11. inc PTR_HIGH ; Increase the "higher address value"
  12.  
  13. end
  14. ;[Unrelated code...]
  15. jmp start
Add Comment
Please, Sign In to add comment