SirCmpwn

Untitled

Apr 29th, 2012
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. ; New problem
  2. SET A, label1 ; Ahead of time, this is considered one word
  3. SET A, 0x8000 ; Same story
  4. label1: ; So this is 0x0002
  5.  
  6. ; But during the second pass...
  7.  
  8. SET A, label1 ; label1 is 0x2, so this can be a short literal
  9. SET A, 0x8000 ; this is long, so all label values ahead of it are shifted forward one
  10. label1: ; This is 0x3 now
  11. ; the first line assembled with label1 == 0x2 :/
Advertisement
Add Comment
Please, Sign In to add comment