Skip to content

Commit

Permalink
Fixed ctimer.X to timer_X in msc3mk1
Browse files Browse the repository at this point in the history
  • Loading branch information
mojontwins committed Jun 24, 2021
1 parent de4295d commit b2a0363
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/dev/definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ unsigned char enoffs;
// Aux

char asm_number;
unsigned int asm_int;
unsigned int asm_int @ 23302;
unsigned int asm_int_2;
unsigned int seed;
unsigned char half_life;
Expand Down
Binary file modified src/utils/msc3_mk1.exe
Binary file not shown.
14 changes: 7 additions & 7 deletions src/utils/src/msc3_mk1.bas
Original file line number Diff line number Diff line change
Expand Up @@ -1581,14 +1581,14 @@ End If
If clausulasUsed (&H70) Then
print #f3, " case 0x70:"
print #f3, " // IF TIMER >= sc_x"
print #f3, " sc_terminado = (ctimer.t < read_vbyte ());"
print #f3, " sc_terminado = (timer_t < read_vbyte ());"
print #f3, " break;"
End If

If clausulasUsed (&H71) Then
print #f3, " case 0x71:"
print #f3, " // IF TIMER <= sc_x"
print #f3, " sc_terminado = (ctimer.t > read_vbyte ());"
print #f3, " sc_terminado = (timer_t > read_vbyte ());"
print #f3, " break;"
End If

Expand Down Expand Up @@ -1990,25 +1990,25 @@ if actionsUsed (&H70) Then
print #f3, " case 0x70:"
print #f3, " // SET_TIMER a, b"
print #f3, " // Opcode: 0x70 a b"
print #f3, " ctimer.t = read_vbyte ();"
print #f3, " ctimer.frames = read_vbyte ();"
print #f3, " ctimer.count = ctimer.zero = 0;"
print #f3, " timer_t = read_vbyte ();"
print #f3, " timer_frames = read_vbyte ();"
print #f3, " timer_count = timer_zero = 0;"
print #f3, " break;"
End If

If actionsUsed (&H71) Then
print #f3, " case 0x71:"
print #f3, " // TIMER_START"
print #f3, " // Opcode: 0x71"
print #f3, " ctimer.on = 1;"
print #f3, " timer_on = 1;"
print #f3, " break;"
End If

If actionsUsed (&H72) Then
print #f3, " case 0x72:"
print #f3, " // TIMER_START"
print #f3, " // Opcode: 0x72"
print #f3, " ctimer.on = 0;"
print #f3, " timer_on = 0;"
print #f3, " break;"
End If

Expand Down

0 comments on commit b2a0363

Please sign in to comment.