Tracking programming - File Management
Tracking programming - File Management
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
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
Norman's Wiki pages have a ton of useful examples, e.g. http://qdosmsq.dunbar-it.co.uk/doku.php ... rap_2:openspkr wrote:Hi there guys,
- generic: is there anyone that cna point me towards resources as to how to do this from Assembly?
His assembly language book is excellent:
https://github.com/NormanDunbar/QLAssemblyLanguageBook
Hope this helps,
Petri
- NormanDunbar
- Forum Moderator
- Posts: 2277
- Joined: Tue Dec 14, 2010 9:04 am
- Location: Leeds, West Yorkshire, UK
- Contact:
Re: Tracking programming - File Management
And if you get stuck, just give a shout out here, someone (or something!) will help.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
Cheers,
Norm.
Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts
No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
Author of Arduino Software Internals
Author of Arduino Interrupts
No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
Re: Tracking programming - File Management
Something?!? Is the tame QL Forum bot trained to give assembly tutorials?NormanDunbar wrote:And if you get stuck, just give a shout out here, someone (or something!) will help.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
Cheers,
Norm.
--
All things QL - https://dilwyn.qlforum.co.uk/index.html
All things QL - https://dilwyn.qlforum.co.uk/index.html
- NormanDunbar
- Forum Moderator
- Posts: 2277
- Joined: Tue Dec 14, 2010 9:04 am
- Location: Leeds, West Yorkshire, UK
- Contact:
Re: Tracking programming - File Management
I might be!
Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts
No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
Author of Arduino Software Internals
Author of Arduino Interrupts
No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
Re: Tracking programming - File Management
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
http://frummel.org/~weedz/atari/examples/fuql_v05.zip
- known bug(s), on real hardware, at certain startups the screen stays black
-
- Font of All Knowledge
- Posts: 3973
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
Re: Tracking programming - File Management
Hi,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
I tried this on Qemulator with Minerva v1.98, works great.
Are you looking to enhance the programme?
Regards,
Derek
Derek
Re: Tracking programming - File Management
Must it be a "CALL" program? No chances to make it as a Job to EX?
4E75 7000
Re: Tracking programming - File Management
Well, it requires some more work; yesDerek_Stewart wrote:Hi,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
I tried this on Qemulator with Minerva v1.98, works great.
Are you looking to enhance the programme?
Re: Tracking programming - File Management
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.RalfR wrote:Must it be a "CALL" program? No chances to make it as a Job to EX?