BSD 4_1_snap development
[unix-history] / sys / mdec / tstoggle.s
CommitLineData
7ad72a32
C
1/*
2 * Prototype toggle in bootstrap code for ts type tapes.
3 * If on anything but a 780 with the drive on uba0
4 * this will have to be repaired by patching uba and umem.
5 */
6 .set UBA0,0x20006000
7 .set UMEM0,0x2013e000
8 .set UBA_MAP,0x800
9 .set TSADDR,0772520-0760000
10
11start:
12 movl uba,r10
13 movl mrv,UBA_MAP(r10)
14 addl3 mrv,$1,UBA_MAP+4(r10)
15 addl3 umem,$TSADDR,r11
16 clrw 2(r11)
171: tstb 2(r11)
18 bgeq 1b
19 movw $0x200+setchr,(r11)
201: tstb 2(r11)
21 bgeq 1b
22 movw $0x200+read,(r11)
23 halt
24 .align 2
25uba: .long UBA0
26umem: .long UMEM0
27mrv: .long 0x80000000
28setchr: .word 0xc004,0x200+char,0,0x8 # set characteristics command
29char: .word 0x200+status,0,0xe,0 # characteristics
30read: .word 0xc001,0,0,0x200 # read command
31status: