How to put old binary data file from DOS in spin?
VIRAND
Posts: 656
Good question for the 8-bit CPU emulator programmers:
I tried something like this, wondering if my biggest problem would be finding the data.
(as in, would "stuff" have the value of the address of the first byte?)
OBJ
stuff = "stuff.bin"
But I got an "unknown character error in stuff.bin" message.
Nothing else is obvious as a potential "INCLUDE".
It would seem silly to write a QBASIC program that generates a DAT section with a lookup table of longs from it,
and cut and paste that into my program like that.
How do you guys do it "the EASY way" especially if you don't have a DOS machine?
How do I get the binary data from the file into the hubram or eeprom and find the first byte of it with my spin program?
I tried something like this, wondering if my biggest problem would be finding the data.
(as in, would "stuff" have the value of the address of the first byte?)
OBJ
stuff = "stuff.bin"
But I got an "unknown character error in stuff.bin" message.
Nothing else is obvious as a potential "INCLUDE".
It would seem silly to write a QBASIC program that generates a DAT section with a lookup table of longs from it,
and cut and paste that into my program like that.
How do you guys do it "the EASY way" especially if you don't have a DOS machine?
How do I get the binary data from the file into the hubram or eeprom and find the first byte of it with my spin program?
Comments
This is how I get a Z80 boot ROM image from a file:
The you can read the bytes in Spin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
Post Edited (heater) : 9/11/2009 8:40:11 AM GMT
Never saw it before and probably wouldn't unless I read all your source code.
BTW, What OS are you using to run QBASIC? Being a 16bit application it always has the tendency
to push the CPU speed to a solid 100% making it unusable under XP. Did you find a way around
this issue?
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
Fwiw, we have several legacy apps with similar issues (including Quick Basic), and they run fine·in a Win98 MS virtual pc envirnment.· Vpc is free from MS, but you will need a license for installing 98.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
From time to time I use VirtualBox from Sun. Its free. Very easy to set up and use.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.