News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_ervin

Phactory problem

Started by ervin, 00:34, 04 November 11

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Devilmarkus

Yes... Didn't see this part in the code.

But you don't need it when you write the prog. directly after assembling and manipulate the header manually then.
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

ervin

Wow!
Guys, thanks so much for all your fabulous help!

That's way more than I could have ever asked for!
What a wonderful little community we have here.

Now to digest all that info!
:)

AMSDOS

Quote from: tastefulmrship on 10:35, 29 November 11
EDIT: Damn it! Why didn't I use XOR A instead of LD A,0? Ah well, doesn't matter in such a small program, I guess.

Because you copied it from my routine which was copied from an AA Assembly Article!  :P   :laugh:  It's only natural they were trying to get an extra 3 Clock Cycles and Byte out of you!  :laugh:
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

tastefulmrship

#28
Quote from: CP/M User on 07:35, 30 November 11
Because you copied it from my routine which was copied from an AA Assembly Article!
Not so, it's the normal FILE SAVE routine I use for all my projects and was sourced from here;
http://www.cpcwiki.eu/index.php/Programming:Saving_a_file

All I did was change the '2' to a '0' so it saved as BASIC.


EDIT: And the BASIC bit (ie, the two lines of DEFB near the beginning) is taken from DevilMarkus's overscan screen code... with the CALL address changed.

AMSDOS

Quote from: tastefulmrship on 09:18, 30 November 11
Not so, it's the normal FILE SAVE routine I use for all my projects and was sourced from here;
http://www.cpcwiki.eu/index.php/Programming:Saving_a_file

All I did was change the '2' to a '0' so it saved as BASIC.

Fair enough!  :laugh:  They (I'm scared to ask who they are) sourced it from AA perhaps!  :laugh:  Though I'm probably dead wrong and AA stole it from somewhere!  :o  They simply applied it to their Menu program on their later Covertapes and then people started asking about it.  :laugh:
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

tastefulmrship

#30
Quote from: CP/M User on 09:27, 30 November 11
Fair enough!  :laugh:  They (I'm scared to ask who they are) sourced it from AA perhaps!  :laugh:  Though I'm probably dead wrong and AA stole it from somewhere!  :o  They simply applied it to their Menu program on their later Covertapes and then people started asking about it.  :laugh:
No, they're the standard Firmware commands for file saving. Firmware Guide page 63 onwards; Cassette/AMSDOS Manager.
Other than writing your own disc management system (like Targhan's sector SAVE/LOAD routines here), everyone will use the same code; &BC8C to open the file, &BC98 to save the file, &BC9F to close the file.

AMSDOS

Quote from: tastefulmrship on 10:05, 30 November 11
No, they're the standard Firmware commands for file saving. Firmware Guide page 63 onwards; Cassette/AMSDOS Manager.
Other than writing your own disc management system (like Targhan's sector SAVE/LOAD routines here), everyone will use the same code; &BC8C to open the file, &BC98 to save the file, &BC9F to close the file.

Obviously, though someone at some point has said:


ld a,0


as opposed to:


xor a


:laugh:
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Powered by SMFPacks Menu Editor Mod