As this is my first time programming for the CE, I have / will have many questions. I'll just list them here as I get them.

Is there any possible way to allow AppVars larger than 64KB? If not, how easy is it to make apps for the CE? Is there a way to sign the apps (or do they even need a signature?)
No, and no you cannot sign apps.
AppVars cannot exceed 64KB however you aren't limited to just using 1 of them. There are plenty of programs/games that require multiple AppVars for size reasons.

There is no publicly available signing key for the CE meaning that community apps are not possible in the traditional sense unfortunately.
tr1p1ea wrote:
There are plenty of programs/games that require multiple AppVars for size reasons.


Certainly. I was just hoping to avoid that "Plan C," but it will work Smile
Mateo has... well, I'm not sure how he does it, but Cesium has a sort of workaround. Somehow. Maybe ask him about it?
Next question: Is there a command prompt program that will remove the 54-byte header and 1024-byte palette parts from a 256-colour bitmap file? Or rather a command prompt program that will simple remove X-number of bytes from a file? I looked at convimg, but the parameters are confusing.
How are the parameters for convimg confusing? It's pretty straightforward. Perhaps ask a question about it so we can help rather than making things insanely more complicated. Wink
MateoConLechuga wrote:
How are the parameters for convimg confusing? It's pretty straightforward. Perhaps ask a question about it so we can help rather than making things insanely more complicated. Wink


Fair enough! Here's my 256-colour bitmap: Tiles.bmp. 256 pixels wide, 128 pixels high. I want to remove the 54-byte header and the 1024-byte palette data so that I'm left solely with 32 KB of raw bitmap data. The bitmap will be compressed, but the header and palette data are making the compressed file bigger than it needs to be.

C:\convimg tiles.bmp tiles.bin

Is that it, or do I need some parameters?
Hot_Dog wrote:
C:\convimg tiles.bmp tiles.bin

Is that it, or do I need some parameters?

Wtf are you smoking, have you even read the readme???

https://github.com/mateoconlechuga/convimg/blob/master/README.md

Come on man.

Here's a example convimg that might do what you want. Keep in mind convimg also offers compression, direct output to appvars, and exportation of assembly headers and source files as needed - but you only asked for binary output so here you go.


Code:
palettes:
  - name: mypalette
    images: automatic

converts:
  - name: myimages
    palette: mypalette
    images:
      - tiles.bmp

outputs:
  - type: bin
    include-file: gfx.txt
    converts:
      - myimages


Here's some more advanced convimg examples:

https://github.com/PeterTillema/Age-Of-CEmpires-I/blob/master/src/gfx/convimg.yml
https://github.com/mateoconlechuga/oiram/blob/master/src/gfx/convimg.yaml
https://github.com/KingDubDub/Jetpack-Joyride-CE/blob/master/src/gfx/convimg.yaml
https://github.com/acagliano/titrek-calc/blob/master/src/gfx/convimg.yaml
https://github.com/commandblockguy/tanks-ce/blob/master/src/data/gfx/convimg.yaml
darkwater4213 wrote:
Cesium has a sort of workaround. Somehow. Maybe ask him about it?


He once told me that the applications don't actually have signing keys.
clevor wrote:
darkwater4213 wrote:
Cesium has a sort of workaround. Somehow. Maybe ask him about it?


He once told me that the applications don't actually have signing keys.

I have never talked to you so I'm not sure how I could have done that.
Next question: In spite of all the RAM I can play around with, I'm hoping for a little bit more. So I'd like to use UsbArea. I read the ti-84+CE.inc information, and I read about the timer ports online. Is this enough to make sure the player can use the USB function normally after leaving the game? Am I making any mistakes?


Code:
;;;;;;
;BEGIN PROGRAM
;;;;;;
;Disable the 3rd timer

 ld hl, $F20031
 res 6, (hl)

;I need to use GetCSC

 ld a, (usbHandleKeys)
 ld (SaveUsbHandleKeys),a
 xor a
 ld ($D14091),a
 ld ($D177B7),a

SaveUsbHandleKeys:
.db 0


 ;;;;;
 ;END PROGRAM
 ;;;;;

 ld hl, $F20031
 set 6, (hl)
 xor a
  ld ($D177B7),a
There are functions ti.usb_ResetTimer, ti.usb_DisableTimer, and ti.usb_EnableTimer available in ti84pce.inc. Btw, are you using fasmg?

Also, in ez80 it is recommended to add the extra A register for implied operations, e.g. "xor a,a".

Other than that it looks fine.
MateoConLechuga wrote:
There are functions ti.usb_ResetTimer, ti.usb_DisableTimer, and ti.usb_EnableTimer available in ti84pce.inc. Btw, are you using fasmg?.


Ah, I didn't know that! Good to know. Smile I'm actually using spasm.
You should switch to fasmg as soon as possible.
MateoConLechuga wrote:
You should switch to fasmg as soon as possible.


What advantages does it have over spasm? Is the switch super easy?
https://www.cemetech.net/forum/viewtopic.php?p=261357#261357

https://github.com/CE-Programming/asm-docs
After successfully exiting the program and entering / leaving a menu, I get some --expected-- garbage on the homescreen, no doubt from using pixel shadow. What command do I need to use to clear all this garbage, which doesn't show up until I enter and then leave a menu?
MateoConLechuga wrote:
clevor wrote:
darkwater4213 wrote:
Cesium has a sort of workaround. Somehow. Maybe ask him about it?


He once told me that the applications don't actually have signing keys.

I have never talked to you so I'm not sure how I could have done that.

That was when I thought you can't put applications on CEmu (specifically tiplanet pb) because of signing keys. You told me that they don't have any, and not to encourage TI to require them.
*Bump* What command do I need to use to clear all the garbage that appears after making use of pixelShadow?
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 2
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement