Page 1 of 2

Tracking programming - File Management

Posted: Sat Sep 04, 2021 10:03 am
by spkr
Hi there guys,

I would like to code out a (Music) Tracker for the QL. So Ill make a program that allows the user to define instruments by settings its parameters in the Tracker, and then subsequently arrange these instruments in a sequence that can be played back. The end result would be something that can be played back in another program (Demo, anyone :)).

In order to be most useful, I would like to implement loading instruments/patterns/songs and saving them. But so far Ive only worked on single-file programs, that are loaded and run from basic, and then executed; rather than touching filemanagement at all.

The goal Im trying to achieve here is to support (creating/)saving and loading files to/from (micro)disk.

To do this, I have several questions;
- generic: is there anyone that cna point me towards resources as to how to do this from Assembly?

and more detailed:
- can create/loading/saving Basic/OS functions be called from ASM?
- can this be done while in supervisor mode?
- can this be done while having interrupts disabled?

Hopefully someone is able to provide me some pointers!
Thanks!
Wietze

Re: Tracking programming - File Management

Posted: Sat Sep 04, 2021 11:17 am
by ppe
spkr wrote:Hi there guys,
- generic: is there anyone that cna point me towards resources as to how to do this from Assembly?
Norman's Wiki pages have a ton of useful examples, e.g. http://qdosmsq.dunbar-it.co.uk/doku.php ... rap_2:open

His assembly language book is excellent:
https://github.com/NormanDunbar/QLAssemblyLanguageBook

Hope this helps,
Petri

Re: Tracking programming - File Management

Posted: Sat Sep 04, 2021 12:41 pm
by NormanDunbar
Petri wrote:Norman's Wiki pages have a ton of useful examples, e.g. http://qdosmsq.dunbar-it.co.uk/doku.php ... rap_2:open

His assembly language book is excellent:
https://github.com/NormanDunbar/QLAssemblyLanguageBook
And if you get stuck, just give a shout out here, someone (or something!) will help.

Cheers,
Norm.

Re: Tracking programming - File Management

Posted: Sat Sep 04, 2021 12:57 pm
by dilwyn
NormanDunbar wrote:
Petri wrote:Norman's Wiki pages have a ton of useful examples, e.g. http://qdosmsq.dunbar-it.co.uk/doku.php ... rap_2:open

His assembly language book is excellent:
https://github.com/NormanDunbar/QLAssemblyLanguageBook
And if you get stuck, just give a shout out here, someone (or something!) will help.

Cheers,
Norm.
Something?!? Is the tame QL Forum bot trained to give assembly tutorials? :o :D

Re: Tracking programming - File Management

Posted: Sat Sep 04, 2021 1:41 pm
by NormanDunbar
I might be!

Re: Tracking programming - File Management

Posted: Wed Sep 15, 2021 6:36 am
by spkr
here a preview of the tracker, currently load and save stuff still need to be implemented

http://frummel.org/~weedz/atari/examples/fuql_v05.zip

- known bug(s), on real hardware, at certain startups the screen stays black

Re: Tracking programming - File Management

Posted: Wed Sep 15, 2021 9:42 am
by Derek_Stewart
spkr wrote:here a preview of the tracker, currently load and save stuff still need to be implemented

http://frummel.org/~weedz/atari/examples/fuql_v05.zip

- known bug(s), on real hardware, at certain startups the screen stays black
Hi,

I tried this on Qemulator with Minerva v1.98, works great.

Are you looking to enhance the programme?

Re: Tracking programming - File Management

Posted: Wed Sep 15, 2021 6:48 pm
by RalfR
Must it be a "CALL" program? No chances to make it as a Job to EX?

Re: Tracking programming - File Management

Posted: Wed Sep 15, 2021 9:07 pm
by spkr
Derek_Stewart wrote:
spkr wrote:here a preview of the tracker, currently load and save stuff still need to be implemented

http://frummel.org/~weedz/atari/examples/fuql_v05.zip

- known bug(s), on real hardware, at certain startups the screen stays black
Hi,

I tried this on Qemulator with Minerva v1.98, works great.

Are you looking to enhance the programme?
Well, it requires some more work; yes :)

Re: Tracking programming - File Management

Posted: Wed Sep 15, 2021 9:08 pm
by spkr
RalfR wrote:Must it be a "CALL" program? No chances to make it as a Job to EX?
I use supervisor and shut down all interrupts. So I guess the answer is yes it should be, no it wont be made to run as a job.