Omnimaga

Calculator Community => TI Calculators => ASM => Topic started by: Xeda112358 on February 09, 2016, 10:14:48 am

Title: [help] App Signing, SPASM
Post by: Xeda112358 on February 09, 2016, 10:14:48 am
My computer is a Rasberry Pi with Debian, and I'm trying to create and sign apps with SPASM. Unfortunately I get the error that appsigning isn't available in my build of Spasm. So then I installed rabbitsign, but rabbitsign says the number of app pages is wrong and when I try to send the resulting file to the calc, it has an error.

Can anybody help me? And is it possible for spasm to do it all (I know that's what I used to do with my old computer).
Title: Re: [help] App Signing, SPASM
Post by: Sorunome on February 09, 2016, 10:51:09 am
Rabbitsign should work, looks to me like your app hearder might be wrong.
How does your app header look like? (and how many pages is the app?)
Title: Re: [help] App Signing, SPASM
Post by: Xeda112358 on February 09, 2016, 11:13:51 am
It's a one-page app and I'm using spasms app.inc stuff.
Code: [Select]
#include "app.inc"
#include "ti83plus.inc"
#include batlib.inc"
defpage(0,"Batlib")
<code>
validate()
Title: Re: [help] App Signing, SPASM
Post by: Sorunome on February 09, 2016, 11:18:09 am
I don't know about spasm, but with brass I still had to add an app header, soemthing like
Code: [Select]
#define APPNAME "Reuben 3"
#define APPPAGES 3
.db 080h,0Fh    ;Field: Program length
.db   00h,00h,00h,00h ;Length=0 (N/A for unsigned apps)
.db 080h,012h    ;Field: Program type
.db   01h,04h  ;Type= Shareware, TI-83Plus
.db 080h,048h    ;Field: App Name
.db APPNAME
.db 080h,081h    ;Field: App Pages
.db APPPAGES
.db   0,0,0,0    ;Length=0, N/A
.db   0,0,0,0    ;Reserved
.db   0,0,0,0    ;Reserved
.db   0,0,0,0    ;Reserved

<now the normal code starts here>
Maybe something like that would work so that rabbit can sign it
Title: Re: [help] App Signing, SPASM
Post by: Xeda112358 on February 10, 2016, 09:38:32 am
Just as an update: After doing a lot of stuff on IRC, it was still being stubborn, but then it decided to work. Still not sure why. Yay?
Title: Re: [help] App Signing, SPASM
Post by: Sorunome on February 10, 2016, 11:05:20 am
Mind posting the app header you are currently using?
Title: Re: [help] App Signing, SPASM
Post by: Xeda112358 on February 11, 2016, 06:22:59 am
I'm using the one found here. (http://wikiti.brandonw.net/index.php?title=83Plus:OS:Certificate/Headers:Fields:Application_Headers)
Much tinier than ones I've used in the past.
Title: Re: [help] App Signing, SPASM
Post by: NanoWar on March 23, 2016, 08:21:32 am
You should really try to compile a newer version of spasm. You could try and grab the sources here: https://github.com/NanoWar/spasm-funk/

I think you need to install libgmp-dev and libssl-dev to be able to compile it.
Title: Re: [help] App Signing, SPASM
Post by: Xeda112358 on March 29, 2016, 07:26:19 am
Thank's, I'll give it a try when I get a moment!