CPCWiki forum

General Category => Emulators => Topic started by: Fran123 on 18:08, 12 April 22

Title: different behavior in winape and rvm
Post by: Fran123 on 18:08, 12 April 22
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
Title: Re: different behavior in winape and rvm
Post by: eto on 17:20, 13 April 22
no DSK attached

what's different and what would you expect?
Powered by SMFPacks Menu Editor Mod