0 Members and 1 Guest are viewing this topic.
Quote from: ScoutDavid on November 22, 2010, 06:46:07 pmHum... Just tried Mimas. It's the first in-calculator Asm( developper, right?Or are there more?It's the first competent one
Hum... Just tried Mimas. It's the first in-calculator Asm( developper, right?Or are there more?
Quote from: calc84maniac on November 22, 2010, 06:53:18 pmQuote from: ScoutDavid on November 22, 2010, 06:46:07 pmHum... Just tried Mimas. It's the first in-calculator Asm( developper, right?Or are there more?It's the first competent one Says the guy that wrote two programs with a "non-competent" one that are on my calc. (Greyscale Tunnel and XtraVar)
Most C compilers are written in C
I've writen a Scheme interpreter in Scheme before.
#include "ti83plus.inc".org 40339.db t2ByteTok, tAsmCmpVariableNameTest .equ 666ThisIsZero .equ 0 B_CALL _ClrLCDFull ld a, VariableNameTest add a, ThisisZero ld h,2 ld l, 154 B_CALL _DispHL B_CALL _getKey B_CALL _ClrLCDFull ret
Use '=' instead of '.equ'. Mimas doesn't support '.equ' yet.
VAR = 666OTHERVAR = 0 BCALL ClrLCDFull ld a, VAR add a, OTHERVAR ld h,2 ld l, 154 BCALL DispHL BCALL GetKey BCALL ClrLCDFull ret
ErrorArgument 029Ah out of range
VAR is 666, which is a 2-byte number. A is only a one-byte register, so you can't load VAR into A.
VAR = 666 B_CALL _ClrLCDFull ld HL, VAR B_CALL _DispHL B_CALL _getKey B_CALL _ClrLCDFull ret
#include "ti83plus.inc".org $9D95.db t2ByteTok, tAsmCmpVariableNameTest .equ 666ThisIsZero .equ 0 B_CALL _ClrLCDFull ld bc, VariableNameTest add c, ThisisZero ld h, 2 ld l, 154 B_CALL _DispHL B_CALL _getKey B_CALL _ClrLCDFull ret
ld a,num_to_addadd cld c,aadc a,bsub cld b,a