Fixed program counter in RET macro, Dirt Racer now plays with some blinking, making progress :)

This commit is contained in:
pagefault
2006-02-19 09:00:04 +00:00
parent 8aa5b2b247
commit 8ae1e80cce
2 changed files with 19 additions and 1 deletions

View File

@@ -26,9 +26,18 @@
EXTSYM WriteLine
%macro FXReturn 0
dec dword[NumberOfOpcodes]
;pushad
js %%endloop
;call WriteLine
;popad
%%blah
jmp [FxTabled+ecx*4]
%%endloop
jmp FXEndLoop
ALIGN32
%endmacro
@@ -38,7 +47,6 @@
jmp [FxTabled+ecx*4]
%%endloop
jmp FXEndLoop
; jmp [FxTabled+ecx*4]
ALIGN32
%endmacro

View File

@@ -3088,6 +3088,16 @@ void ZsnesPage()
MouseY = 0;
}
extern "C" signed int NumberOfOpcodes;
void WriteLine()
{
char buf[50];
sprintf(buf, "%d\n", NumberOfOpcodes);
WriteConsole(debugWindow, buf, strlen(buf), NULL, NULL);
}
// This function creates the debug console
void InitDebugger()
{