CPCWiki forum

General Category => Programming => Topic started by: ZbyniuR on 17:20, 01 April 15

Title: Disk Format in Basic
Post by: ZbyniuR on 17:20, 01 April 15
I need short procedure in ASM to format disk, by POKEd in Basic, so short how it possible 2 Basic lines max, I hope. No extra ROMs no RSX just CALL. Any help.
Title: Re: Disk Format in Basic
Post by: Devilmarkus on 11:29, 02 April 15
Here you go:
(Taken from Unofficial Amstrad WWW Resource (http://www.cpctech.org.uk/download.html) )


Title: Re: Disk Format in Basic
Post by: ZbyniuR on 12:03, 04 April 15
Thanks for this link, someday will be useful.
I was hoping for something shorter. Years ago, I had something shorter than 100 bytes. And these questions are unnecessary, more simply is POKE in BASIC. But this is better than nothing. :)

Actually, it is enough for me procedure to format track and change track number by POKE. :)
Title: Re: Disk Format in Basic
Post by: TFM on 15:38, 04 April 15
You could use the one letter RSX commands of any DOS ROM. Look here:


AMSDOS Hidden RSX Functions - CPCWiki (http://www.cpcwiki.eu/index.php/AMSDOS_Hidden_RSX_Functions#Format_Track)



Powered by SMFPacks Menu Editor Mod