Miscellaneous Ideas
|
Post your ideas for new miscellaneous programs here, or build on ideas posted by other visitors.
|
|
Reply to this item
|
Re: Miscellaneous Ideas
|
Jared Brayshaw
|
Is there anyone here able to e-mail me a ROM image for the 83 Plus? I have the calculator, but the Virtual TI can't get the image.
|
|
27 April 2003, 00:17 GMT
|
|
Easy to learn Assembly
|
nick s
|
I want to hep any basic programmer who is sick and tired of slow/bad games and inability to understand ASM (of any kind) to learn z80.
By using a bunch of '#define' commands or an '#include'
file that makes z80 look more like TI-B.A.S.I.C.
Example:Hello World in z80
.nolist
#define end .end
#define END .end
#define equ .equ
#define EQU .equ
#include "ti83plus.inc"
.list
.org 9D95h
b_call(_ClrLCDFull)
ld hl,0
ld (PenCol),hl
ld hl,msg
b_call(_PutS); Display the text
b_call(_NewLine)
ret
msg:
.db "Hello world!",0
.end
.end
Here's my version
.nolist
#define end .end
#define END .end
#define equ .equ
#define EQU .equ
#define store ld
#define clearhome b_call(_ClrLCDFull)
#define disp b_call(_PutS)
#define move_cursor_to_next_line b_call(_NewLine)
#define outputcolumn PenCol
#define save_prgm_to_memory_at .org
#define return_to_calculator_mode ret
#define define_as .db
#Include "ti83plus.inc"
.list
save_prgm_to_memory_at 9D95h
clearhome
store hl,0
store outputcolumn,hl
store hl,message
disp
move_cursor_to_next_line
return_to_calcuator_mode
message:
define_as "Hello World!",0
.end
.end
You will need a little help understanding it but if you look through it with no z80 knowledge bileveme it will be easier to read and understand at least a few bits and pieces not to mention when you're writing a game program
|
|
29 April 2003, 01:27 GMT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Re: Re: Re: Easy to learn Assembly
|
benryves
(Web Page)
|
I worked on a system like that, except with a proper compiler so that, say:
Print (2,3,"Hello!")
End
would be converted to:
ld hl,LABEL_1
ld a,2
ld (curcol),a
ld a,3
ld (currow),a
ld hl,LABEL_1
bcall(_puts)
ret
LABEL_1:
.db "Hello!"
In short, it would create all the labels ETC for you.
|
|
9 May 2003, 14:38 GMT
|
|
|
|
|
ASM in BASIC FORMAT
|
shkaboinka
(Web Page)
|
BETTER YET:
It would not be TOO hard to make a compiler (program) that used nearly the SAME format as BASIC and converted it to ASM; you could even add more features like recursion, arrays, user defined vars (but that would be harder; it would be a constant work in progress with more and more features being added);
HERE IS THE THING THOUGH: this would have to be either an ASM program for use on the calc, OR (more likely), a computer program (C++/Java or something) that simply converted the text format or actually worked like an editor; this could either just put the asm form in a text file (TASM could compile it), or, if you want to make it really good, make it convert it, compile it, and put it in calc format; I think i will try some of this myself
|
|
1 September 2003, 20:58 GMT
|
|
C/C++ for z80
|
shkaboinka
|
It would be cool if some people could take some z80 asm
commands & such and make a higher level language for
z80 (C/C++); it would just need its own libs
and includes and stuff, and it would need to compile
into a calc file like .8xp. It could compile into a
file in ASM format and stuff.
It may need its own compiler besides just includes &
libs, or it would just make an .EXE file; commands that
are already C/C++ (at least simple pne like "for")
would need to create the correct z80 calls.
I Do not think it would be a good idea for any of it to
just use the BASIC commands (they are slow), though I
dont see why there couldn't be a .h file for that...
I don't know; maybe it would just be one of those
ADDITIONAL languages that you would use with [C/C++],
like OpenGL or _FC api calls
|
|
30 April 2003, 01:20 GMT
|
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
You can change the number of comments per page in Account Preferences.
|