Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
About
Team
Rules
Stats
Status
Sitemap
Chat
Downloads
Forum
News
Our Projects
Major Community Projects
Recent Posts
Unread Posts
Replies
Tools
SourceCoder3
Other Things...
Omnimaga Radio
TI-83 Plus ASM File Unsquisher
Z80 Conversion Tools
IES TI File Editor
Free RAM areas
Comprehensive Getkeyr table
URL Shortener
Online Axe Tilemap Editor
Help
Contact Us
Change Request
Report Issue/Bug
Team
Articles
Members
View the memberlist
Search For Members
Buddies
Login
Register
Omnimaga
»
Forum
»
Calculator Community
»
TI Calculators
»
ASM
»
binpac8x problem
« previous
next »
Print
Pages: [
1
]
2
Go Down
Author
Topic: binpac8x problem (Read 7622 times)
0 Members and 1 Guest are viewing this topic.
utz
LV4
Regular (Next: 200)
Posts: 161
Rating: +28/-0
binpac8x problem
«
on:
August 03, 2014, 03:09:35 pm »
This has been troubling me for some time, but I finally can't avoid the problem any longer. binpac8x just doesn't do the trick for me, the files it outputs simply won't run.
Right now I'm trying to compile a .86p file, though I've had issues with .82p files before as well.
I've converted the same binary with mk86p, which works just fine. A side-by-side comparison in a hex editor reveals that binpac8x' file contains a faulty header and end wrapper, and is also 2 bytes shorter.
Any ideas what could be causing this problem? I'm on Debian, using Python 2.7 and binpac8x 1.3.
«
Last Edit: August 03, 2014, 03:20:15 pm by utz
»
Logged
Ancient Wonderworld
/
Homepage
/
Soundcloud
/
Bandcamp
/
HoustonTracker
Streetwalrus
LV12
Extreme Poster (Next: 5000)
Posts: 3821
Rating: +80/-8
Re: binpac8x problem
«
Reply #1 on:
August 03, 2014, 03:32:09 pm »
Why not switch away from such an outdated tool ? Which assembler do you use ? Most modern assemblers include a linker for all z80 calcs (spasm, brass).
Logged
utz
LV4
Regular (Next: 200)
Posts: 161
Rating: +28/-0
Re: binpac8x problem
«
Reply #2 on:
August 03, 2014, 04:14:52 pm »
pasmo is the assembler of my choice... I'm writing code that targets different platforms, so using a TI-specific assembler is not an option for me. I've also tried spasm before, and didn't like it.
Upon more careful examination, I see that binpac8x is indeed bugged. It doesn't include the mandatory $8e,$28 token at the end of the header. Consequently, the binsize info and checksum are also wrong. Meh, I don't want to learn python just to fix this
Logged
Ancient Wonderworld
/
Homepage
/
Soundcloud
/
Bandcamp
/
HoustonTracker
Streetwalrus
LV12
Extreme Poster (Next: 5000)
Posts: 3821
Rating: +80/-8
Re: binpac8x problem
«
Reply #3 on:
August 03, 2014, 06:17:53 pm »
You don't need to learn Python. Just glance at the code and you'll most likely figure it out.
I can probably help if you can't (I know Python 3, but Python 2 shouldn't pose too much of a problem).
Logged
utz
LV4
Regular (Next: 200)
Posts: 161
Rating: +28/-0
Re: binpac8x problem
«
Reply #4 on:
August 03, 2014, 07:29:15 pm »
Well, I've managed to fix the TI-86 part, but it was pretty tricky. Started to look a bit into the TI-82 part, that seems even more difficult to fix. To begin with, It doesn't even add the $dc in front of the program name, which is needed by just about every shell out there. I don't think Kerm ever bothered to test his tool on anything other than the Plus models. In any case thanks Streetwalrus for offering to help. I might get back to you at some point, though at the moment I tend towards writing my own packer from scratch.
Logged
Ancient Wonderworld
/
Homepage
/
Soundcloud
/
Bandcamp
/
HoustonTracker
Streetwalrus
LV12
Extreme Poster (Next: 5000)
Posts: 3821
Rating: +80/-8
Re: binpac8x problem
«
Reply #5 on:
August 03, 2014, 07:36:20 pm »
No problem, glad you got it partially fixed.
I think the fact that hardly anyone does z80 asm for anything else than the 83+ makes it less interesting for devs to spend time making tools for the other calcs.
Logged
chickendude
LV8
Addict (Next: 1000)
Posts: 817
Rating: +90/-1
Pro-Riot Squad
Re: binpac8x problem
«
Reply #6 on:
August 03, 2014, 11:18:39 pm »
Yeah, i think Devpac8x was strictly for the 83+ and BinPac8x was a sort of Devpac-solution for newer OSes, since Devpac was a 16-bit program. I have used spasm to make 82 and 83 programs (i've had trouble with nostub 83 programs though since it compresses everything), i haven't tried assembling anything for the 86 though. I imagine it'd work.
Btw, have you mentioned this to Kerm (over at Cemetech)? I think Kerm would like to know if there are issues using it for other calculators and would probably help fix it.
Also, i'm curious what you didn't like about spasm. I think it's great, it's got a powerful macro system, it's super fast, and all you have to do is type "spasm prog.asm prog.8xp". The only thing i wish it had was a (better) processing of order of operations. As it is you have to make sure you use parentheses when doing multiplications and divisions.
Logged
utz
LV4
Regular (Next: 200)
Posts: 161
Rating: +28/-0
Re: binpac8x problem
«
Reply #7 on:
August 04, 2014, 07:05:21 am »
Ummyeah, I should probably report this at Cemetech, but somehow I doubt Kerm really cares. I mean the tool was released some 4 years ago, so these very obvious bugs should've been noticed by now.
Spasm - it's a matter of taste, really. I don't doubt that it's a good assembler, it just doesn't suit my coding style. It's mostly minor things that irk me, e.g. having to prefix hex numbers with $ when I prefer # (one keystroke less on German keyboard), strange handling of local labels, etc. Spasm is too TASM-ish, if you will. It also lacks support for some other Z80 platforms I code for, and due to the quirks in syntax porting stuff over is usually quite a hassle.
Logged
Ancient Wonderworld
/
Homepage
/
Soundcloud
/
Bandcamp
/
HoustonTracker
Keoni29
LV11
Super Veteran (Next: 3000)
Posts: 2466
Rating: +291/-16
Re: binpac8x problem
«
Reply #8 on:
August 04, 2014, 07:09:44 am »
I wrote a tool for converting binaries to appvars. I'm sure I can modify it so it can generate programs too.
Logged
If you like my work: why not
give me an internet?
utz
LV4
Regular (Next: 200)
Posts: 161
Rating: +28/-0
Re: binpac8x problem
«
Reply #9 on:
August 04, 2014, 07:27:17 am »
Yes, gimme gimme gimme! Ima beta test the hell out of it!
Logged
Ancient Wonderworld
/
Homepage
/
Soundcloud
/
Bandcamp
/
HoustonTracker
Keoni29
LV11
Super Veteran (Next: 3000)
Posts: 2466
Rating: +291/-16
Re: binpac8x problem
«
Reply #10 on:
August 04, 2014, 07:32:19 am »
http://8times8.eeems.me:81/blog/index.php?archive&thread=380&name=to8xv-windows-software-for-converting-anything-to-an-appvar
Source included I believe.
Logged
If you like my work: why not
give me an internet?
utz
LV4
Regular (Next: 200)
Posts: 161
Rating: +28/-0
Re: binpac8x problem
«
Reply #11 on:
August 04, 2014, 07:39:41 am »
Jaa... but I need you to add the functionality to create .xxp/s files for all Z80 calcs
Otherwise I could just write my own tool, obviously.
Logged
Ancient Wonderworld
/
Homepage
/
Soundcloud
/
Bandcamp
/
HoustonTracker
Keoni29
LV11
Super Veteran (Next: 3000)
Posts: 2466
Rating: +291/-16
Re: binpac8x problem
«
Reply #12 on:
August 04, 2014, 07:46:29 am »
I'd have to look up the file format for those. I am pretty sure only some stuff in the header changes.
Logged
If you like my work: why not
give me an internet?
utz
LV4
Regular (Next: 200)
Posts: 161
Rating: +28/-0
Re: binpac8x problem
«
Reply #13 on:
August 05, 2014, 06:17:19 am »
Kerm said he'll look into fixing binpac8x, so don't worry about enhancing to8xv for now.
Logged
Ancient Wonderworld
/
Homepage
/
Soundcloud
/
Bandcamp
/
HoustonTracker
chickendude
LV8
Addict (Next: 1000)
Posts: 817
Rating: +90/-1
Pro-Riot Squad
Re: binpac8x problem
«
Reply #14 on:
August 05, 2014, 01:22:29 pm »
Wow is $ a three-stroke character on German keyboards? With my Spanish keyboard # is more annoying since you've got to use AltGr. What is a real pain on the Spanish keyboard is typing [] and {}, still just AltGr + the key, but they're in a weird spot. Luckily i don't have to worry about that with z80
Also, i'm pretty sure you can suffix hex numbers with an h (FFh), though i've always used $ so it's not an issue for me. I really don't care for the 0x format (or the ampersand). Anyway, # just makes me think of an immediate value. And i guess that's true about spasm's formatting, for some reason i didn't think you were using the same code base across different platforms.
And for some reason i thought you were Dutch
Logged
Print
Pages: [
1
]
2
Go Up
« previous
next »
Omnimaga
»
Forum
»
Calculator Community
»
TI Calculators
»
ASM
»
binpac8x problem