Hi, guys. As the topic title implies i'm trying to enable turbo mode using Assembly.
I test the comands found on the wiki in Basic and worked fine.
I translated the code to Assembly (above) and it don't work. The "eternal loop" is just to make sure the execution reached the end of subroutine.
I tested on openMSX.
Am I doing some stupid mistake here?
EnableTurboMode: ; &H2D = BIOS_HWVER ; IF PEEK(&H2D)=2 THEN OUT 64,8:IF INP(64)=247 THEN OUT 65,0 ; source: <a href="https://www.msx.org/wiki/Panasonic_FS-A1FX" title="https://www.msx.org/wiki/Panasonic_FS-A1FX">https://www.msx.org/wiki/Panasonic_FS-A1FX</a> ; IF PEEK(&H2D)=2 ld a, (BIOS_HWVER) cp 2 ret nz ; OUT 64,8 ld a, 8 out (64), a ; IF INP(64)=247 in a, (64) cp 247 ret nz ; OUT 65,0 xor a out (65), a .eternalLoop: ; debug jp .eternalLoop ret
Aangemeld of registreer om reacties te plaatsen