Advertisement
miki_brill

Untitled

Jan 9th, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. main: mov pc,sp
  2. tst -(sp)
  3. mov #input,@#60 ;input procedure for the keyboard interrupt vector
  4. mov #200, @#62 ;setting the keyboard's priority to 4
  5. ;mov #output,@#64 ;output procedure for the "printer" (screen) interrupt vector
  6. mov #200, @#66 ;setting the printer's priority to 4
  7. mov #counter,@#100 ;timer procedure for the clock interrupt vector
  8. mov #300, @#102 ;setting the printer's priority to 6
  9. mov #100,@#tps ;enabling interrupts for the printer
  10. mov #101,@#tks ;enabling interrupts & reading for the keyboard
  11. waitAt: tstb @#tps ;printing the start of a command line to the screen
  12. bpl waitAt
  13. movb #'@,@#tpb
  14. waitSp: tstb @#tps
  15. bpl waitSp
  16. movb #' ,@#tpb
  17. w: wait
  18. br w
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement