Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- br main
- num: .equate 2
- main: subsp 0,i
- stro quest,d
- ask: deci num,d
- lda num,d
- cpa 0,i
- brlt check
- check: stro error,d
- charo '\n',i
- stro quest,d
- br ask
- addsp 0,i
- stop
- error: .ascii "Error: You have entered a negative number. \X00"
- quest: .ascii "Enter a number: \X00"
- .end
Add Comment
Please, Sign In to add comment