giox
Newbie
Posts: 13
|
Post by giox on Jan 1, 2010 21:03:30 GMT -5
Feels like that DTVMKFS and DTVFSEDIT doesn't support 24 bit address format In this case the DTVBUILD would be the only option. Any idea where to get that nowadays Here's the relevant README.TXT ----------------clip-clip-clip----------------------------------------- DTVBASIC v0.9 by Grokk / TheGang. 2008-01-03 Flash images in DTV-format. Note: DTVBASIC was originally created to be loaded from disk to DTV hi-mem. It does so by switching in the correct hi-mem bank, load it with data and then switch it back. When loading from flash, the DTV uses DMA transfer. DMA maps directly to the full 2MB range of the DTV memory, and is un-aware of which bank is currently switched in. However, the flash directory has 24-bit load adresses, so it is possible to load the data directly to the hi-mem position. This is the reason for the strange load adresses BASDATA.BIN,$BASDATA,1998848,65532 PRGDATA.BIN,$PRGDATA,1982464,65532 EXTDATA.BIN,$EXTDATA,2001408,65532 RAMDATA.BIN,$RAMDATA,2002944,65532 Make sure that the tool you use to compile your flash image supports the 24-bit load adress format. I use DTVBUILD by Hideki, which works fine. ------clip-ends---------------------------------
|
|
|
Post by nojoopa on Jan 2, 2010 7:00:02 GMT -5
Looking at the dtvmkfs 0.91 sources, it seems to support 24 bit (load) addresses. A quick test... $ dtvmkfs -ddddd -ki dtvrom.bin dtvbasic_v0_9.zip Reading index.txt from archive dtvbasic_v0_9.zip zip: dtvbasic_v0_9.zip, file: DTVBASIC.BIN, c64: DTVBASIC, 2049, 2070 zip: dtvbasic_v0_9.zip, file: BASDATA.BIN, c64: BASDATA, 1998848, 65532 zip: dtvbasic_v0_9.zip, file: PRGDATA.BIN, c64: PRGDATA, 1982464, 65532 zip: dtvbasic_v0_9.zip, file: EXTDATA.BIN, c64: EXTDATA, 2001408, 65532 zip: dtvbasic_v0_9.zip, file: RAMDATA.BIN, c64: RAMDATA, 2002944, 65532 Directory has 8 entries 76 kB used (3.7%), 1972 kB free. Writing flashfs.bin. $ dtvdirdump flashfs.bin filename flash load sys blk ------------------------------------------------------- DTVBASIC 010100-0104b8 000801 0816 4 BASDATA 0104b9-010cd3 1e8000 fffc 9 PRGDATA 010cd4-011b86 1e4000 fffc 15 EXTDATA 011b87-011fef 1e8a00 fffc 5 RAMDATA 011ff0-012d43 1e9000 fffc 14 $ 012d44-012d8a 000801 0000 1
...would indicate that the loading addresses are handled fine. Don't know about DTVFSEdit and can't help in finding DTVBUILD. "Feels like"... did you actually try?
|
|
giox
Newbie
Posts: 13
|
Post by giox on Jan 2, 2010 16:29:01 GMT -5
Did the same debug and yes, the fault is not in that. renaming DTVBASIC.BIN to DTVBASIC.DTV in index.txt made the prg run so that the title screen shows up, but then exits to back to intro menu... I also tried to rename the four XXXDATA file extensions to RAW and DTV, but no change. That's why i went suspecting the load address.
I'm trying this packet with Vice C64DTV. Maybe some settings in emulator would help eg. +VICIIvcache or something else...
g:\anssi DTV image2010\kasaus1>dtvmkfs.exe -m1ldddddki paketti.bin dtvslimintro.zip dtvbasic_dtv.zip Importing file paketti.bin. Reading index.txt from archive dtvslimintro.zip zip: dtvslimintro.zip, file: dtvslimintro.dtv, c64: INTRO, 2049, 0 Reading index.txt from archive dtvbasic_dtv.zip zip: dtvbasic_dtv.zip, file: DTVBASIC.DTV, c64: DTVBASIC, 2049, 2070 zip: dtvbasic_dtv.zip, file: BASDATA.DTV, c64: BASDATA, 1998848, 65532 zip: dtvbasic_dtv.zip, file: PRGDATA.DTV, c64: PRGDATA, 1982464, 65532 zip: dtvbasic_dtv.zip, file: EXTDATA.DTV, c64: EXTDATA, 2001408, 65532 zip: dtvbasic_dtv.zip, file: RAMDATA.DTV, c64: RAMDATA, 2002944, 65532 Directory has 9 entries 0 "DTV FLASH " SPIFF 16 "INTRO" :PRG 5 "DTVBASIC" :PRG 7944 BLOCKS FREE. INTRO 010120-01091B 000801 0000 DTVBASIC 01091C-010CCC 000801 0816 BASDATA 010CCD-0114D8 1E8000 FFFC PRGDATA 0114D9-012378 1E4000 FFFC EXTDATA 012379-0127DC 1E8A00 FFFC RAMDATA 0127DD-01351D 1E9000 FFFC $ 01351E-013577 000801 0000 78 kB used (3.8%), 1970 kB free. Writing flashfs.bin.
|
|
|
Post by nojoopa on Jan 3, 2010 9:25:07 GMT -5
Did the same debug and yes, the fault is not in that. renaming DTVBASIC.BIN to DTVBASIC.DTV in index.txt made the prg run so that the title screen shows up, but then exits to back to intro menu... I also tried to rename the four XXXDATA file extensions to RAW and DTV, but no change. That's why i went suspecting the load address. A reasonable suspect. If I remember correctly, dtvmkfs was written (from scratch) because DTVBUILD was win32 only and the author never released the sources. I'd hate to see something rely on it. I'm trying this packet with Vice C64DTV. Maybe some settings in emulator would help eg. +VICIIvcache or something else... The only options that could affect it are "True Flash FS emulation" and "Virtual device traps". Sorry, can't help much more; never really used DTVBASIC, only tested it once or twice (on x64dtv) using a ready-made image (with DTVBIOS).
|
|
giox
Newbie
Posts: 13
|
Post by giox on Jan 4, 2010 8:12:11 GMT -5
DTVBASIC doesn't work with dtvslimintro. DTVBIOS v1.2 by Grokk / TheGang was needed for that. Obviously bootstrap was the key word in this case. Anyway the out come is that DTVMKFS does support 24-bit address, but DTVFSEDIT not. (If that interests anybody in anyway
|
|
|
Post by 1570 on Jan 11, 2010 11:42:22 GMT -5
DTVFSEDIT doesn't support 24 bit address format It does. There just was a copy/paste bug in the routine displaying the address in the UI. Fixed.
|
|