nmlgc
fc0ccd5e2b
[Reduction] #117-118: mem_assign and mem_assign_all
2014-08-21 23:05:54 +02:00
nmlgc
d270a625e5
[Reduction] #116 : master.lib memory manager variables
2014-08-21 22:54:07 +02:00
nmlgc
99b9963082
[Reduction] #115 : dos_ropen
...
AKA "fontfile_open()", and originally kept in FONTOPEN.ASM... yeah.
2014-08-21 22:09:18 +02:00
nmlgc
98bf9d9576
Change the name of the entry point to STARTX
...
Because it just so happens that master.lib's bfnt_header structure contains
an element named "START".
And huh, this suddenly works without changing any assembler or linker
parameters? I swear it didn't when I tried it first.
2014-08-21 22:05:17 +02:00
nmlgc
87fae21127
[Reduction] #114 : fperror
...
OK, one more Borland C function I noticed while I was covering signals.
2014-08-21 21:33:04 +02:00
nmlgc
8e4683cd1e
[Reduction] #109-113: Signal handling
...
> "OK, the signal slice is pretty large, let's do it tomorrow"
> stay there for the majority of the day
Oh well, at least it paid off. I *really* should work towards PI loading now,
though.
2014-08-21 21:28:18 +02:00
nmlgc
d1ccecdfa9
[Reduction] #106-108: PC-98 EGC setup
...
"Enhanced Graphic Charger", hm...
2014-08-20 22:24:05 +02:00
nmlgc
a244c30cd9
[Reduction] #104-105: _dos_getdrive and _dos_setdrive
2014-08-20 21:38:31 +02:00
nmlgc
69672b819a
[Reduction] #103 : DOSENV
2014-08-20 21:22:56 +02:00
nmlgc
8ca6964330
[Reduction] #102 : ErrorMessage
2014-08-20 20:38:08 +02:00
nmlgc
e6e1e3a937
[Reduction] #101 : Far struct copy
2014-08-20 20:35:18 +02:00
nmlgc
68e1dc8596
[Reduction] #100 : fflush
2014-08-20 19:46:47 +02:00
nmlgc
33fa958a30
[Reduction] #98-99: getvect and setvect
...
Yeah, getvect.asm also includes setvect(). They really could have chosen a
better naming scheme.
2014-08-20 18:09:26 +02:00
nmlgc
ea547e4841
[Reduction] #92-97: exit
2014-08-20 17:53:02 +02:00
nmlgc
9d23be1a92
[Reduction] #91 : stpcpy
2014-08-20 17:03:08 +02:00
nmlgc
d3aaca7bd3
[Reduction] #90 : text_clear
2014-08-20 16:45:24 +02:00
nmlgc
eff96385b0
[Reduction] #82-89: PC-98 escape sequences
...
I don't know anything about ANSI/VT100/??? escape sequences, but after some
quick research, these sequences and their effect seem to be specific to the
PC-98 (although they're implemented as part of DOS, of course).
2014-08-20 16:27:28 +02:00
nmlgc
8f6c28c939
Restore master.lib's FUNC and ENDFUNC macros
...
With seg000 changed to word alignment and all definitions for "func" removed,
the master.lib functions can keep their exact alignment themselves.
[Binary change] db 0 → nop before get_machine_98() in the MAIN.EXE and
MAINE.EXE files of TH04 and TH05, respectively.
2014-08-20 15:25:40 +02:00
nmlgc
f39d9165da
[Reduction] #81 : ioctl
2014-08-20 14:02:31 +02:00
nmlgc
b90a1e2320
[Reduction] #80 : chmod
...
Yup, getting rid of all the definitions for "func", so that we can restore the
master.lib macro with the same name.
2014-08-20 14:02:29 +02:00
nmlgc
e9701c491d
[Reduction] #79 : atexit
...
Once again, random misreferences in one executable slow down the development.
And that function doesn't even seem to be called anywhere.
2014-08-20 14:02:27 +02:00
nmlgc
ce00b0b534
[Reduction] #70-78: C start up code
...
Finally!
[Binary change] Order of the first three relocations in every executable.
Two more relocations in the TH01 executables.
2014-08-20 14:02:26 +02:00
nmlgc
30d44e6822
[Reduction] #66-69: Near data segment space allocation
...
Neither should that one.
2014-08-19 19:54:53 +02:00
nmlgc
bb2c6c6efe
[Reduction] #53-65: Near heap functions
...
Come on, that shouldn't even count.
2014-08-19 19:52:11 +02:00
nmlgc
356c3b346d
th01: Fix the erroneous references to the beginning of the data segment
...
... I, um, don't know what's going on there. C++ class instances, maybe? At
least the code is largely identical in all three executables, so reduction's
going to take care of that.
2014-08-19 18:08:26 +02:00
nmlgc
8082ba0434
[Reduction] #52 : setupio
...
Thanks, ZUNSOFT.COM, for turning this function into a mess.
[Binary change] Two relocations in every executable... *except* for TH01's
REIIDEN.EXE.
2014-08-18 19:50:20 +02:00
nmlgc
dcb2726799
[Reduction] #51 : Standard FILE structures
...
[Binary change] Relocations in TH01's FUUIN.EXE. (...)
2014-08-18 16:58:24 +02:00
nmlgc
11a91d0e45
[Reduction] #50 : setenvp
2014-08-18 14:33:24 +02:00
nmlgc
c5860dd7a6
Set up labels to denote the BSS and init/exit table segments
...
Again, we can't split dseg into the "real" segments just yet, because that
would force us to correct the assumed data segment in every single function.
[Binary change] Relocations in TH01's FUUIN.EXE. Again.
2014-08-17 23:55:59 +02:00
nmlgc
aaba4d6149
Fix the declaration of errno
...
Hooray for underscore confusion. Should have copy-pasted the correct one all
along...
2014-08-17 13:57:24 +02:00
nmlgc
5fb4445ada
[Reduction] #48-49: exec
...
[Binary change] Relocations in TH01's FUUIN.EXE.
2014-08-17 13:57:03 +02:00
nmlgc
d4b766ee4e
[Reduction] #45-47: Far data segment space allocation
2014-08-15 21:48:43 +02:00
nmlgc
a033b347fc
[Reduction] #44 : graph_extmode
2014-08-15 16:12:09 +02:00
nmlgc
a313ae5d78
[Reduction] #43 : Text VRAM variables
2014-08-15 14:26:44 +02:00
nmlgc
d5a80ee363
[Reduction] #42 : Long shift right
2014-08-14 20:07:02 +02:00
nmlgc
554d0325d5
[Reduction] #41 : Long pointer comparison
2014-08-14 20:07:00 +02:00
nmlgc
859e48a59f
[Reduction] #40 : Long multiplication
2014-08-14 20:06:58 +02:00
nmlgc
3e34084a8d
[Reduction] #39 : Long pointer subtraction
2014-08-14 20:06:57 +02:00
nmlgc
ca18919ee7
[Reduction] #38 : Long division
2014-08-14 20:06:55 +02:00
nmlgc
bf4edcec28
[Reduction] #37 : Long shift left
2014-08-14 20:06:54 +02:00
nmlgc
fc9dacd180
[Reduction] #36 : Huge pointer addition
2014-08-14 19:55:26 +02:00
nmlgc
3b911b3c20
[Reduction] #35 : _isatty
2014-08-14 19:55:23 +02:00
nmlgc
4e3bd76348
[Reduction] #33-34: __IOERROR and __DOSERROR
2014-08-14 15:56:57 +02:00
nmlgc
d95fc3cdd9
[Reduction] #32 : get_machine
2014-08-14 14:48:55 +02:00
nmlgc
7b9a30fc8d
[Reduction] #31 : get_machine_98
2014-08-14 14:30:48 +02:00
nmlgc
1c91cc75e7
[Reduction] #30 : get_machine_at
...
Um. Not sure if ZUN used an older version there, or if these additional
branches simply resulted from a lack of optimization...
And I even had to convert the labels to local syntax.
2014-08-14 14:27:36 +02:00
nmlgc
af609d5e1c
[Reduction] #29 : get_machine_dosbox
2014-08-14 13:22:17 +02:00
nmlgc
59688e23fc
[Reduction] #28 : Machine_State
...
We~ll, OK, it's just a single variable, but it's originally stored in its own
.ASM file as well.
And yup, that's how we're going to treat data slices.
2014-08-14 13:22:14 +02:00
nmlgc
cc313d5095
[Reduction] #27 : check_machine_fmr
2014-08-14 12:22:50 +02:00
nmlgc
5764275549
[Reduction] #26 : strrchr
...
Marking the first function that was originally written in C, which means that
there are no original label names we could preserve.
2014-08-14 12:22:44 +02:00