You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

[TI-84+CE] ICE Compiler

b/Softwares Started by PT_, March 25, 2016, 08:14:17 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

u/Snektron April 09, 2016, 07:16:53 AM
Will you implement a modulo operator? (it's been one of the more usefull things in Axe :P)
Quote from: PT_ on April 08, 2016, 08:52:25 PM
In the meantime, has someone a good code in ASM to get all the programs or should I write it myself?
What do you mean?
u/PT_ April 09, 2016, 08:05:18 AM
Quote from: Cumred_Snektron on April 09, 2016, 07:16:53 AM
Will you implement a modulo operator? (it's been one of the more usefull things in Axe :P)
Quote from: PT_ on April 08, 2016, 08:52:25 PM
In the meantime, has someone a good code in ASM to get all the programs or should I write it myself?
What do you mean?
The CE has the token remainder( for that, and I will try to implement it yes.
For my question, I've received some code from Mateo, so I don't need it anymore. :) What I tried to say, was that ICE recognizes programs that starts with a special token, and search them in the VAT.
u/PT_ April 09, 2016, 12:52:18 PM
Today I've 'worked' on creating the logo, here is my result:

or


Which one is better (I prefer the black background)
u/Snektron April 09, 2016, 02:29:53 PM
I actually prefer white, maybe because snow etc is white too
u/123outerme April 09, 2016, 03:43:42 PM
If you could remove the black outlines on just the holes in the text, I think I'd like the white version a lot better, for the same reason as said above. Or maybe you want to go a light blue route?
u/Dudeman313 April 09, 2016, 07:31:10 PM
I like the black background, but I agree with @123outerme 's outline suggestion.
Or you could do something like this:



but with a gradient with lighter blues at the bottom.
u/Dream of Omnimaga April 09, 2016, 10:20:22 PM
Actually, I wonder if keeping a background, but making it tiled (Minecraft style) would be feasible and still look nice? It could be an ice background based on the other one, but made of 16*16 blocks. Otherwise I kinda like the white background.
u/Snektron April 10, 2016, 07:06:27 AM
That seems like a cool idea, dj. How big is the screenshot now as is?
u/PT_ April 11, 2016, 06:35:46 AM
Quote from: DJ Omnimaga on April 09, 2016, 10:20:22 PM
Actually, I wonder if keeping a background, but making it tiled (Minecraft style) would be feasible and still look nice? It could be an ice background based on the other one, but made of 16*16 blocks. Otherwise I kinda like the white background.
So, just like how xLIBC[E] background work? With a kind of spritesheet etc?
Quote from: Cumred_Snektron on April 10, 2016, 07:06:27 AM
That seems like a cool idea, dj. How big is the screenshot now as is?
Now my whole program is 16K, which means the logo+background is about 15.5K
u/Dudeman313 April 11, 2016, 12:55:35 PM
Or could you do a cracked ice background? Like DJ's suggestion, but slanted in places?
u/Dream of Omnimaga April 11, 2016, 04:01:03 PM
Quote from: PT_ on April 11, 2016, 06:35:46 AM
Quote from: DJ Omnimaga on April 09, 2016, 10:20:22 PM
Actually, I wonder if keeping a background, but making it tiled (Minecraft style) would be feasible and still look nice? It could be an ice background based on the other one, but made of 16*16 blocks. Otherwise I kinda like the white background.
So, just like how xLIBC[E] background work? With a kind of spritesheet etc?
Quote from: Cumred_Snektron on April 10, 2016, 07:06:27 AM
That seems like a cool idea, dj. How big is the screenshot now as is?
Now my whole program is 16K, which means the logo+background is about 15.5K
Yep, like a tile map.
u/PT_ April 30, 2016, 03:17:57 PM
Sooo.....

Long time no post of this project. I'm sorry for that, I am pretty busy with exams and the study next year after the exams, but that doesn't mean I haven't worked on it. As you may know is the Shunting-Yard-Algorithm already done, which means I've started with the part to evaluate the RPN notation stuff. Not very easy, because I want to optimize the output very well, but that also means more statements, and stuff, bla bla bla.... For each operator, there are 4 possibilities:
- <number> <number> <operator>
- <number> <variable> <operator>
- <variable> <number> <operator>
- <variable> <variable> <operator>
Both numbers, is just popping the numbers and operator from the stack, and push the result. And for the other cases, I've written routines to evaluate them and add the output to the program data. For now, it's pretty optimized, and I'm finally happy that I've a screenshot now :D







I've only implemented + and - yet, and I'm busy with *. I hope to make good progress! :)

P.S. Now that I'm posting this post, I see that <number> - <variable> can be shorter: ld a, <number> / ld hl, <variable> / sub a, (hl)
u/Dream of Omnimaga April 30, 2016, 04:04:58 PM
Good to see this still alive and kicking. :) Will this auto-optimize certain additions and substractions like explained by Axe Parser's auto-opt text documentation?
u/PT_ May 17, 2016, 09:28:17 AM
Small post despite my final exams: I've 'implemented' an API. That is, when running ICE from an ASM program, it will skip the header and directly search and compile the program. An example would be this:
  ld hl, ICEname
  call _Mov9ToOP1
  call _ChkFindSym
  ex de, hl
  ; skip header
  inc hl
  inc hl
  push hl    ; save for later
    ld hl, varname
    call _Mov9ToOP1
  pop hl
  ld (callAdress), hl
callAdress = $+1
  call $000000
  ; continue

Of course, you can modify it for your own, but the program name should be in OP1 and to skip the ICE header, increment twice the starting data point.
My ICE program would look like this:
  jr noAPI
  jr APIContinue
noAPI:
  header....
APIContinue:
  call _ChkFindSym
etc
u/Dream of Omnimaga May 17, 2016, 04:19:27 PM
When do your finals end by the way?

Also I am unsure if I understand your post. Is that header thing so that people can compile ICE programs from any ASM program they want?
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal