Format Request: Commodore PET
BotB Academy Bulletins
 
 
132370
Level 31 Chipist
kleeder
 
 
 
post #132370 :: 2020.12.11 4:02am :: edit 2020.12.29 5:29pm
  
  Xaser, 3-UP, cabbage drop, 2a03fox, nitrofurano, amelia, DevEd, raphaelgoulart, Trreck and A64 liēkd this
good evening!
this came up in the chatz today and it looks pretty dope: https://www.youtube.com/watch?v=WmEtDes5drY

i wonder why noone shared this before, but anyway.

it comes with a xm-to-bin py-converter and the bin can be converted to an executable .prg file that runs perfectly in vice with 64tass. (the readme that comes with the converter is all u need here)
http://ayce.seawavescollective.net/

the music you can do with it is pretty cool (as u can hear in the video already) and i just tested it myself. works without issues.
i transcribed the first pattern of my old channelf entry for this https://cdn.discordapp.com/attachments/239107754575265803/786922877294346240/works.wav

we already have vic20, sid, ted and amiga. it would make sense to have PET as well here.
it would be a great addition to winterchip 16, am i right? ;D

edit: format icons (rightclick, save as) http://kleeder.de/files/pet_icons.zip
 
 
132371
Level 24 Chipist
A64
 
 
 
post #132371 :: 2020.12.11 4:04am
This is cool. Thou i can't still get the converter to work. Maybe I'm dumb.
(btw just sayin im the guy who sent it in chat. i just wander around YT and saw it lul.)
 
 
132469
Level 29 Chipist
nitrofurano
 
 
 
post #132469 :: 2020.12.12 3:28pm
  
  kleeder liēkd this
this topic reminds me when i tried this: https://www.youtube.com/watch?v=xGrBS_6Pbsc
 
 
133377
Level 31 Chipist
kleeder
 
 
 
post #133377 :: 2020.12.26 2:42pm :: edit 2020.12.26 2:42pm
  
  nitrofurano liēkd this
IMPORTANT BUMP!!!
needwant this in winrar chops!!! :O
(i also made icon/trophies because i was bored: http://kleeder.de/files/pet_icons.zip (rightclick, save )
 
 
133383
Level 29 Chipist
nitrofurano
 
 
 
post #133383 :: 2020.12.26 3:43pm
  
  kleeder liēkd this
about the conversion process, i think it would be not that difficult to have an easier converter, only working with binary parts (header, loader and converted song), all concatenated in a final binary file without the need of compiling (assembly language) everything - i actually were trying that day - what i struggled a lot was on trying the final file on emulators, even from the previous battles
 
 
148127
Level 31 Chipist
kleeder
 
 
 
post #148127 :: 2021.10.23 11:09pm
  
  OminPigeonMaster liēkd this
--> bump <--
 
 
148133
Level 22 Chipist
3-UP
 
 
 
post #148133 :: 2021.10.24 2:21am
  
  doopdee, Jakerson, OminPigeonMaster and kleeder liēkd this
oh hell yeah, more weird ass beeper formats
 
 
199931
Level 8 Chipist
fortuna0800
 
 
post #199931 :: 2024.10.28 12:45pm
Hi, i'm having some trouble converting xm to prg. Here are the steps i took and where i'm stuck right now:

1. made the (test) xm file in OpenMPT, named "test.xm";

2. i copied it to the "thingscantpet\src" folder;

3. i opened a command prompt in the "thingscantpet\src" folder;

4. i did "python xmconv.py test.xm test.bin", test.bin is created;

5. i took test.bin to the 64tass folder;

6. i opened a command prompt in the 64tass folder;

7. i'm stuck here, i don't know make the .bin into a .prg.

i tried doing "64tass test.bin test.prg", but it tells me test.bin has syntax errors and that test.prg doesn't exist. I do not know how to handle .bin or .asm files, neither do i know what 64tass is for, exactly. I'm afraid others are facing the same issue, since the Lyceum also doesn't detail the conversion process much.
 
 
199933
Level 21 Chipist
tfx
 
 
 
post #199933 :: 2024.10.28 1:25pm :: edit 2024.10.28 1:31pm
Was not expecting an AYCE mention, let's goooooo

Edit: or the fact that the original was from 2020. The tooling for this is available (and it looks like it's provided by Kleeder through the lyceum) but the original website is dead.

This was used in an AYCE production by some other members, so I can look back through and see if I can find the readme/any other docs from it.
 
 
199936
Level 21 Chipist
tfx
 
 
 
post #199936 :: 2024.10.28 2:43pm
  
  fortuna0800 liēkd this
Bump for fortuna:

You will need to either execute 64tass from the directory that "test.bin" is in, or move "player.asm "and your "test.bin" file into the 64tass directory.

If you are using a .bin file that is NOT named "music.bin" - you'll need to open the "player.asm" file and scroll to the bottom, and update the include directive:

.binary "music.bin"

Change the name in quotations to whatever you named your bin file (test.bin in your case).

Execute 64tass with all the flags:
64tass -C -a -D STANDALONE=1 -o test.prg player.asm

This should emit a .prg called "test.prg" - you can change the name of the prg to whatever you want
 
 
199937
Level 8 Chipist
fortuna0800
 
 
post #199937 :: 2024.10.28 3:18pm :: edit 2024.10.28 3:24pm
i copied 64tass.exe and the syntax folder into the thingscantpet src folder and ran the last command you specified, following the naming rule

"64tass -C -a -D STANDALONE=1 -o test.prg player.asm"

it errors with the following message:

Assembling file: player.asm
Reading file: music.bin
player.asm:393:63: error: an expression is expected
_freqs = [samp.freq0l, samp.freq0h, samp.freq1l, samp.freq1h,
^
player.asm:394:17: error: duplicate definition 'freq2l'
samp.freq2l, samp.freq2h, samp.freq3l, samp.freq3h]
^
player.asm:149:1: note: original definition of 'freq2l' was here
freq2l = *-1
^
player.asm:394:23: error: general syntax
samp.freq2l, samp.freq2h, samp.freq3l, samp.freq3h]
^
player.asm:395:59: error: an expression is expected
_poss = [samp.pos0, samp.pos0+1, samp.pos1, samp.pos1+1,
^
player.asm:396:17: error: duplicate definition 'pos2'
samp.pos2, samp.pos2+1, samp.pos3, samp.pos3+1]
^
player.asm:176:1: note: original definition of 'pos2' was here
pos2 = *-2
^
player.asm:396:21: error: general syntax
samp.pos2, samp.pos2+1, samp.pos3, samp.pos3+1]
^
player.asm:400:9: error: not defined symbol '_freqs'
sta _freqs[_x]
^
player.asm:402:9: error: not defined symbol '_poss'
sta _poss[_x]
^
player.asm:392:1: note: searched in this object only
update_reg
^
Error messages: 8
Warning messages: None
Passes: 3

some of the ^'s wont point to the right words in this comment, so i'll put them down here:

player.asm:393:63: error: -> samp.freq1h
player.asm:394:17: error: -> samp.freq2l
player.asm:394:23: error: -> samp.freq2l
player.asm:395:59: error: -> samp.pos1+1
player.asm:396:17: error: -> samp.pos2
player.asm:396:21: error: -> samp.pos2
 
 
199938
Level 21 Chipist
tfx
 
 
 
post #199938 :: 2024.10.28 3:33pm :: edit 2024.10.28 3:41pm
  
  fortuna0800 and nitrofurano liēkd this
Okay! Figured it out. Looks like the .asm file is broken on the most recent 64tass build.

EDIT: After testing some different 64tass builds, the issue seems to be with 64tass 1.56+. 1.55.2200 and below, to 1.53.1515 seem to work fine.

PETTAN was written a while ago, and the version of 64tass that I have that works is 1.53.1515

You can find that build here: https://sourceforge.net/projects/tass64/files/binaries/64tass-1.53.1515.zip/download

I'm currently the custodian of the AYCE github, so I can look into a fix for supporting newer 64tass, but I did not write the replayer so I'm going in blind. No promises on it being a quick fix.
 
 
199942
Level 8 Chipist
fortuna0800
 
 
post #199942 :: 2024.10.28 4:44pm
  
  nitrofurano, kleeder and tfx liēkd this
Thank you very much, this works! Someone should update the Lyceum on this issue while the fix isn't out, though.
 
 
199960
Level 21 Chipist
tfx
 
 
 
post #199960 :: 2024.10.29 7:07am
  
  fortuna0800 liēkd this
Lyceum has been updated to direct you towards 1.53.1515, as well as mention the supported version range (in case you want to use a different version).
 
 

LOGIN or REGISTER to add your own comments!