Fixed hirom/lorom detection, less hacky; should be fixed for good this time

This commit is contained in:
pagefault
2001-08-19 20:42:28 +00:00
parent 72137742a7
commit 37e771d994

View File

@@ -5507,8 +5507,8 @@ NEWSYM CheckROMType
mov esi,[romdata] mov esi,[romdata]
add esi,7FECh add esi,7FECh
cmp word[esi],8000h ; cmp word[esi],8000h
jb .checkhirom ; jb .checkhirom
mov esi,[romdata] mov esi,[romdata]
add esi,32704+23 add esi,32704+23
cmp byte[esi],32 cmp byte[esi],32
@@ -5541,7 +5541,7 @@ NEWSYM CheckROMType
cmp bx,0FFFFh cmp bx,0FFFFh
jne .cantcheck jne .cantcheck
mov byte[romtype],2 mov byte[romtype],2
jmp .checkhiromletter jmp .donecheck
.cantcheck .cantcheck
; check for a header with mostly letters or spaces ; check for a header with mostly letters or spaces
mov esi,[romdata] mov esi,[romdata]