diff options
author | Jeffrey Armstrong <jeff@approximatrix.com> | 2024-11-20 20:37:21 -0500 |
---|---|---|
committer | Jeffrey Armstrong <jeff@approximatrix.com> | 2024-11-20 20:37:21 -0500 |
commit | ff1d2f48a76842c4f7e1754375df2f81c63b2152 (patch) | |
tree | f7706fc3f2ccd991a8dc019e08381f797224f12c /asm/dosver.asm | |
parent | 3b2001b6dc43724e73cba3160cb05c0302b09303 (diff) | |
download | GWFetch-ff1d2f48a76842c4f7e1754375df2f81c63b2152.tar.gz GWFetch-ff1d2f48a76842c4f7e1754375df2f81c63b2152.zip |
Modified how assembly array is addressed to avoid memory corruption. Address could change at any moment, especially when vars are created, so care is taken to never generate a variable when we need to call or modify instructions.
Diffstat (limited to 'asm/dosver.asm')
-rw-r--r-- | asm/dosver.asm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/asm/dosver.asm b/asm/dosver.asm index 8406663..9bbb0e0 100644 --- a/asm/dosver.asm +++ b/asm/dosver.asm @@ -1,5 +1,6 @@ push bp
- mov bp, sp
+ mov bp, sp ; needs to be &H8B, &HEC
+ pushf
mov al, 0
mov ah, 0x30
@@ -71,6 +72,7 @@ alldone: mov di, [bp]+8
mov [di], ax
+ popf
pop bp
retf 4
\ No newline at end of file |