Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. BR main
  2. num: .WORD 5
  3. input: .BLOCK 2
  4. ;
  5. main: STRO startmsg,d
  6. CHARO '\n',i
  7. DECI input,d
  8. LDA num,d
  9. CPA input,d
  10. BRLT endif
  11. DECO input,d
  12. STRO GEmsg,d
  13. DECO num,d
  14. STOP
  15. endif: STRO lessthan,d
  16. STOP
  17. startmsg:.ASCII "Guess a number\x00"
  18. GEmsg: .ASCII " is Greater Than or Equal to \x00"
  19. lessthan:.ASCII " is Less Than \x00"
  20. .END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement