Explorar el Código

Fix return type of e6502_reset

master
Nathaniel Walizer hace 1 año
padre
commit
72d3f3bc3a
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      e6502.c
  2. +1
    -1
      e6502.h

+ 1
- 1
e6502.c Ver fichero

@@ -917,7 +917,7 @@ int e6502_run(e6502_Core* core,
return status;
}

int e6502_reset(e6502_Core* core) {
void e6502_reset(e6502_Core* core) {
core->registers.PC = e6502_r16(core, e6502_Reset_Vec);
core->registers.S -= 3;
core->registers.P |= (e6502_Status_B | e6502_Status_1);


+ 1
- 1
e6502.h Ver fichero

@@ -98,4 +98,4 @@ int e6502_run(e6502_Core* core,
int* run,
int instructions);

int e6502_reset(e6502_Core* core);
void e6502_reset(e6502_Core* core);

Cargando…
Cancelar
Guardar