-
Notifications
You must be signed in to change notification settings - Fork 0
/
diskwrit.s
executable file
·52 lines (39 loc) · 1.06 KB
/
diskwrit.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
**************************************
* *
* Write to disk by The Fate of ULM *
* *
**************************************
offset equ 28
sec_per_track equ 10
x:
move.w #0,-(sp)
move.w #7,-(sp)
trap #13
addq.l #4,sp
lea desttab(pc),a0
move.w #0,-(sp)
move.w (a0)+,d0
mulu #sec_per_track,d0
add.w (a0)+,d0
subq.w #1,d0
move.w d0,-(sp)
move.w (a0)+,-(sp)
pea buffer(pc)
move.w #3,-(sp)
move.w #4,-(sp)
trap #13
lea $0e(sp),sp
clr.w -(sp)
trap #1
********************************************************************************
; 1 word = destination track
; 2 word = destination sector
; 3 word = sector count
desttab:
dc.w 1,1,250
section data
buffer equ *+offset
incbin 'e:\paradist\p.bin'
section bss
ds.l 512
end