News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Fran123

reading a file from disc with asm

Started by Fran123, 20:25, 16 October 22

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fran123

Hello

I want to do a loader calling |cpm, then when the code is executing, I try to read a file from disc with this code:

;; in
;; hl - name
;; b - name length
;; de - destinatin address memory
load_bin:
call &bc77 ;cas in open
ex de, hl
call &bc83 ;cas in direct
call &bc7a ;cas in close
ret

but, when I execute I get "Press PLAY then any key:"

What is happening?    I'm following the book of DATA BECKER   (https://cpcrulez.fr/book_german-floppy_buch.htm)

Squeekboxandj

I'd have to look up the disc routines to really help you but my first observation is that the routines you're calling are cassette routines. 
CPC464 & 6128

Fran123

It seems when you type |cpm roms are deactivated :/

SkulleateR

Disk Rom is also disabled after a normal run"Test" you have to reenable it afaik ....

http://www.cpcmania.com/Docs/Programming/Files.htm

Powered by SMFPacks Menu Editor Mod