Skip to content

Commit c440eaa

Browse files
committed
separate into more modular pieces, builds only with OW but not fully functional
1 parent 5fd5922 commit c440eaa

21 files changed

+3689
-14
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.sym

build.bat

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ goto doit
5252
IF [%BASEPATH%]==[] set BASEPATH=D:\ow19
5353
set CC=wcc
5454
set LD=wlink
55-
56-
set LDFLAGS=system com name share.com file share,kitten,tnyprntf,amishelp option quiet,map,statics,verbose,artificial,symfile
57-
::set LDFLAGS=system dos name share.com file share,kitten,tnyprntf,amishelp option quiet,map,statics,verbose,artificial,symfile
55+
set LDFLAGS=@share.lnk
56+
::set LDFLAGS=system com name share.com file share,kitten,tnyprntf,amishelp option quiet,map,statics,verbose,artificial,symfile
5857
set CFLAGS=-I..\kitten -I..\tnyprntf -q -0 -ms -btdos -s -os -d3 -fo=
5958
set ASMFLAGS=-D__WATCOM__
6059
set EXTRA_OBJS=amishelp.obj

buildow.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build ow D:\ow19 gmake

buildtc.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build tcc2 d:/tc201 d:\make-3.71\make

buildtc2.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build tcc2 d:\tc201 d:\djgpp\bin\make.exe

buildtc3.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build tcc3 d:\tc30 d:\djgpp\bin\make.exe

src/amishelp.asm

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,20 @@ cpu 8086
66

77

88
%ifdef __WATCOM__
9-
group DGROUP _TEXT _DATA _TEXT_STARTUP _BSS _bss_startup
10-
section _TEXT CLASS=CODE
11-
section _DATA class=DATA
12-
section _TEXT_STARTUP CLASS=CODE
13-
section _BSS class=BSS
9+
group DGROUP _TEXT _DATA _BSS _TEXT_STARTUP _DATA_STARTUP _BSS_STARTUP
10+
; group DGROUP _TEXT_RESIDENT _DATA_RESIDENT _TEXT CONST STRINGS _DATA DATA XIB XI XIE YIB YI YIE _BSS _BSS_RESIDENT
11+
12+
section _TEXT CLASS=CODE ; resident code
13+
section _DATA class=DATA ; resident initialized data
14+
; section _BSS nobits class=BSS ; resident uninitialized data
15+
section _BSS class=BSS
16+
17+
section _TEXT_STARTUP class=TCODE ; transient segments
18+
; section CONST_STARTUP
19+
section _DATA_STARTUP class=TDATA
20+
section _BSS_STARTUP nobits class=TBSS
21+
22+
section _BSS
1423
%else
1524
section .bss
1625
%endif
@@ -51,6 +60,7 @@ section .text
5160
%endif
5261

5362

63+
5464
%if 0
5565

5666
Resident code of TSR example
@@ -206,7 +216,7 @@ ctrl1:
206216
%endif
207217
%else
208218
%ifdef __WATCOM__
209-
section _DATA
219+
section _DATA_STARTUP
210220
%else
211221
section .data.startup
212222
%endif
@@ -333,7 +343,7 @@ amisnum equ $-1 ; AMIS multiplex number (data for cmp opcode)
333343
%ifdef __WATCOM__
334344
section _TEXT_STARTUP
335345
%else
336-
section .text.startup
346+
section .text.startup
337347
%endif
338348

339349

@@ -1172,7 +1182,7 @@ SearchIISPChain:
11721182

11731183

11741184
%ifdef __WATCOM__
1175-
section _DATA
1185+
section _DATA_STARTUP
11761186
%else
11771187
section .data.startup
11781188
%endif
@@ -1182,7 +1192,7 @@ debuggeramissig:
11821192
.prod: fill 8,32,db "lDebug" ; product
11831193

11841194
%ifdef __WATCOM__
1185-
section _bss_startup nobits class DATA
1195+
section _BSS_STARTUP
11861196
%else
11871197
section .bss.startup nobits
11881198
%endif

0 commit comments

Comments
 (0)