File tree 5 files changed +21
-15
lines changed
5 files changed +21
-15
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ seg6.obj: constants.asm structs.asm variables.asm
73
73
sound.obj : constants.asm variables.asm func.mac
74
74
digits.obj : variables.asm func.mac
75
75
76
- $(OBJ ) : extern.inc windows.inc
76
+ $(OBJ ) : base.inc extern.inc windows.inc
77
77
78
78
variables.asm : data.bin genvars.sh Makefile
79
79
$(SHELL ) genvars.sh > variables.asm
Original file line number Diff line number Diff line change
1
+ ; base.inc - common definitions
2
+
3
+ ; Useful constants for dealing with far pointers.
4
+ ;
5
+ ; Declare far pointers as a dword and use these constants to access
6
+ ; the segment and offset parts.
7
+ ;
8
+ ; mov bx,[GameStatePtr]
9
+ ; mov dx,[bx+TrapListPtr+FarPtr.Off]
10
+ ; mov ax,[bx+TrapListPtr+FarPtr.Seg]
11
+ ;
12
+
13
+ STRUC FarPtr
14
+ .Off resw 1 ; 0x0
15
+ .Seg resw 1 ; 0x2
16
+ ENDSTRUC
17
+
18
+ ; vim: syntax=nasm
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ SEGMENT CODE ; 3
2
2
3
3
; Game logic
4
4
5
+ %include "base.inc"
5
6
%include "constants.asm"
6
7
%include "structs.asm"
7
8
%include "variables.asm"
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ SEGMENT CODE ; 4
2
2
3
3
; Functions for loading levels
4
4
5
+ %include "base.inc"
5
6
%include "constants.asm"
6
7
%include "structs.asm"
7
8
%include "variables.asm"
Original file line number Diff line number Diff line change @@ -148,18 +148,4 @@ STRUC Slipper
148
148
.isblock resw 1 ; 0x9
149
149
ENDSTRUC
150
150
151
- ; Useful constants for dealing with far pointers.
152
- ;
153
- ; Declare far pointers as a dword and use these constants to access
154
- ; the segment and offset parts.
155
- ;
156
- ; mov bx,[GameStatePtr]
157
- ; mov dx,[bx+TrapListPtr+FarPtr.Off]
158
- ; mov ax,[bx+TrapListPtr+FarPtr.Seg]
159
- ;
160
- STRUC FarPtr
161
- .Off resw 1 ; 0x0
162
- .Seg resw 1 ; 0x2
163
- ENDSTRUC
164
-
165
151
; vim: syntax=nasm
You can’t perform that action at this time.
0 commit comments