Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main: mov pc,sp
- tst -(sp)
- mov #input,@#60 ;input procedure for the keyboard interrupt vector
- mov #200, @#62 ;setting the keyboard's priority to 4
- ;mov #output,@#64 ;output procedure for the "printer" (screen) interrupt vector
- mov #200, @#66 ;setting the printer's priority to 4
- mov #counter,@#100 ;timer procedure for the clock interrupt vector
- mov #300, @#102 ;setting the printer's priority to 6
- mov #100,@#tps ;enabling interrupts for the printer
- mov #101,@#tks ;enabling interrupts & reading for the keyboard
- waitAt: tstb @#tps ;printing the start of a command line to the screen
- bpl waitAt
- movb #'@,@#tpb
- waitSp: tstb @#tps
- bpl waitSp
- movb #' ,@#tpb
- w: wait
- br w
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement