Fixed program counter in RET macro, Dirt Racer now plays with some blinking, making progress :)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user