Join us on Discord!
You can help CodeWalrus stay online by donating here.

Sudoku CSE [ASM] [CSE]

Started by unknownloner, June 11, 2015, 09:41:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

unknownloner

1700K I believe.
The font is Terminus btw, it's a bitmap font so it works really well for making calc fonts.

  
/)

Snektron

Though the CSE letter layout in bytes is ridiculous. 2 bytes per line of 10 pixels <_<
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


unknownloner

#32
I'm actually storing it as 1 byte per pixel, and then compressing that with LZ4. That comes out to 216 bytes, while if I stored 2 bytes per line it'd be 300 bytes.
Originally I did this so I could use DCSE's "transparent pixel" feature in its 8-bit sprite routine, but I ended up not using that. I figured I'd keep it at 1 byte per pixel though since it was smaller to store.

  
/)

Dream of Omnimaga

Yeah it would be insane if we were forced to use 16-bit colors just to have custom fonts and use 2 bytes per pixel for them. Since your fonts are quite large this would have made the file size skyrocket despite the fonts only using two colors.

WOuld it be too slow if you compressed them to the same format as TI-83+ pics (1 bit per 8 pixels)?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

unknownloner

Quote from: DJ Omnimaga on June 22, 2015, 06:03:12 AM
WOuld it be too slow if you compressed them to the same format as TI-83+ pics (1 bit per 8 pixels)?
TI-83+ pics are 1 bit per pixel, not 1 bit per 8 pixels.

I don't compress them to 1 bit per pixel because it results in a larger file size than LZ4 w/1 byte per pixel, as mentioned in my previous post.

  
/)

Dream of Omnimaga

Ah my bad, I made a typo. But yeah I meant 1 byte per 8 pixels. And I see. I didn't realize it could end up larger that way.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

unknownloner

It's basically because numbers in fonts have a lot of repeating sequences of bytes. For example,  think of a 0. All the middle rows are the same, so once it's written out once the compressor can just refer back to the previous data.

  
/)

Dream of Omnimaga

Yeah true. I just didn't realize that the data was so simple enough to end up being smaller than 1-bit graphics. By the way, how is this project going on? Do you plan to make a CE version?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

unknownloner

When I end up finishing this I'll add it to the list of things to port to the CE. Once I get a CE I'm planning to port my ASM games to it, starting with 2048.

  
/)

Unicorn

Quote from: unknownloner on July 04, 2015, 03:17:50 PM
When I end up finishing this I'll add it to the list of things to port to the CE. Once I get a CE I'm planning to port my ASM games to it, starting with 2048.
Not snake? O.O

I actually play your snake game very much. :P
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

Dream of Omnimaga

CE ports of your games would definitively be nice Unknownloner. Hopefully it's not too hard to pull off.  :)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

unknownloner

Quote from: Unicorn on July 06, 2015, 09:25:29 PM
Quote from: unknownloner on July 04, 2015, 03:17:50 PM
When I end up finishing this I'll add it to the list of things to port to the CE. Once I get a CE I'm planning to port my ASM games to it, starting with 2048.
Not snake? O.O

I actually play your snake game very much. :P

Snake is one of my oldest games so it'll be harder to port just because I'll have to figure out how the code works.

  
/)

Dream of Omnimaga

Haha I had this happen with many of my old games. In one occasion I just said "screw it! I'm rewriting the entire thing"
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Unicorn

Lol, I guess thats true. :P
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

Powered by EzPortal