Author Topic: Phactory problem  (Read 5170 times)

0 Members and 1 Guest are viewing this topic.

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1016
  • Likes Given: 926
Re: Phactory problem
« Reply #25 on: 11:37, 29 November 11 »
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

Offline ervin

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.353
  • Country: au
    • index.php?action=treasury
  • Liked: 1016
  • Likes Given: 1196
Re: Phactory problem
« Reply #26 on: 12:31, 29 November 11 »
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!
 :)
My (cancelled) entry for the CPCRetroDev 2017 Competition http://www.cpcwiki.eu/forum/programming/my-cpcretrodev-2017-entry/
FAST line drawing in CPCtelera http://www.cpcwiki.eu/forum/programming/drawing-lines-with-cpctelera-sdcc/
RUNCPC My entry for the CPCRetroDev 2015 Competition http://www.cpc-power.com/index.php?page=detail&num=12494

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.893
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1104
  • Likes Given: 1871
Re: Phactory problem
« Reply #27 on: 08:35, 30 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

Offline SuTeKH/Epyteor

  • 6128 Plus
  • ******
  • Posts: 1.379
  • Country: 00
  • Liked: 1286
  • Likes Given: 2030
Re: Phactory problem
« Reply #28 on: 10:18, 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.
« Last Edit: 11:41, 30 November 11 by tastefulmrship »

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.893
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1104
  • Likes Given: 1871
Re: Phactory problem
« Reply #29 on: 10:27, 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

Offline SuTeKH/Epyteor

  • 6128 Plus
  • ******
  • Posts: 1.379
  • Country: 00
  • Liked: 1286
  • Likes Given: 2030
Re: Phactory problem
« Reply #30 on: 11:05, 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.
« Last Edit: 11:07, 30 November 11 by tastefulmrship »

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.893
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1104
  • Likes Given: 1871
Re: Phactory problem
« Reply #31 on: 11:19, 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:
 
Code: [Select]

ld a,0

as opposed to:
 
Code: [Select]

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