different behavior in winape and rvm

Started by Fran123, 20:08, 12 April 22

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fran123

Hello

I checked a different behavior in winape and rvm with testing drive function (&88). 
I attach the dsk.

The asm source is

org #4000

is_disc_ready:
ld a, #88 ; test drive
call find_command

ld a,0 ;drive
call execute_command
jr c, _carry1
_carry0
ld a,0
jr _grabar
_carry1
ld a,1

_grabar
ld (#3fff), a
ret




;;
;; in
;; a - comando
;; out
;; (BUFFER+1) - direccion de la funcion en la rom
;; (BUFFER+2) - numero de rom
find_command:
ld hl, BUFFER
ld (hl), a
call #bcd4 ; <hl=direccion <c=rom
ld (BUFFER+1), hl
ld a, c
ld (BUFFER+3), a
ret



execute_command:
rst #18
dw BUFFER+1
ret


buffer:
db 0

eto

no DSK attached

what's different and what would you expect?

Powered by SMFPacks Menu Editor Mod