maximinus

Untitled

Apr 9th, 2012
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. ;test some maths in 0x10c
  2.  
  3. :start set a, 123
  4. add a, 123 ;a=246
  5. sub a, 240 ;a=6
  6. mul a, 3 ;a=18
  7. div a, 2 ;a=9
  8. set b, a
  9. mul a, b ;a=81
  10. set c, 1
  11. shl a, c ;a=81*2=162
  12. and a, 0x005d ;a=0
  13. bor a, 0xff00 ;a=65,280
  14. sub a, 1 ;a=65279
  15. div a, 32767 ;a=1
  16. shr a, c ;a=0
  17. xor a, 3 ;a=3
  18. :end set PC, end
Advertisement
Add Comment
Please, Sign In to add comment