ticalc.org
Basics Archives Community Services Programming
Hardware Help About Search Your Account
   Home :: Archives :: News :: Kirk Meyer Announces ChASM Programming Language

Kirk Meyer Announces ChASM Programming Language
Posted by Nick on 9 September 1999, 01:03 GMT

Kirk Meyer has announced that he is creating a new programming language for the Z80 to assist him in his projects. ChASM, so called because it is a mix between the readability and ease of C and the power of assembly, has its own compiler. The advantage is that the source code becomes much more readable and easier to program without losing any speed. At first only TI-86 programs will be supported, although it will not take much work in order to make it work for all Z80 calculators. The expected release date is around the first of October.

The ChASM code is shown at the left, and the code that would normally be used in assembly is commented out at the right. Spaces are generally optional but make the code easier to read. Also note that it is proper to use either the C form of de-- or the slightly more readable form, de = de - 1. Also note that ChASM is really just an easier-to-use Z80 assembler, and thus expressions such as de = hl - 1 are not allowed.

hl = _plotSScreen; ld hl,_plotSScreen    
de = hl    ; ld d,h \ ld e,l
de = de - 1    ; dec de
bc = 1024 - 1    ; ld bc,1024-1
copy.fwd    ; ldir
  
a = [_plotSScreen]    ; ld a,(_plotSScreen)
rot >> a    ; rrca
a -> [6]    ; out (6),a
a ? 2    ; cp 2
if >= goto label    ; jr nc,label
 


The comments below are written by ticalc.org visitors. Their views are not necessarily those of ticalc.org, and ticalc.org takes no responsibility for their content.


Re: Kirk Meyer Announces ChASM Programming Language
Philip Seguin  Account Info
(Web Page)

Hey Kirk.. When you finishing that pretty print thing? The 86 which is a 89? You give up on that? I wish you wouldn't get my hopes up like that, then start something new. (Unless that was someone else making that) if so, just ignore me and call me dumb.

     9 September 1999, 03:29 GMT

Re: Re: Kirk Meyer Announces ChASM Programming Language
Kirk Meyer  Account Info
(Web Page)

This program will help me continue that. The asm code was becoming big and unreadable. Also it's more than just pretty print...

     9 September 1999, 03:33 GMT


Re: Re: Re: Kirk Meyer Announces ChASM Programming Language
Joey Mavity  Account Info

What are they gonna do next (I sound like my grandma. She just bought an apple g3 (I'm sooo pissed, it kicks my computers butt and I do video editing)).

Pretty print for the 86--now we need a program for the 89 that shows all the steps ;-) I'd love to see the teachers reaction to that one.

--Joey

     9 September 1999, 05:00 GMT


Re: Re: Re: Re: Kirk Meyer Announces ChASM Programming Language
Kaxman  Account Info

you can kind of show all the steps. All you do is solve the equation using the symbolic manipulation built in to the 89. just key in each step based on the step before it. It would be nice if you could set it up to do that automatically, though.

     11 September 1999, 00:51 GMT


Re: Kirk Meyer Announces ChASM Programming Language
Ron! Account Info
(Web Page)

That would be really nice!!!

     9 September 1999, 03:44 GMT

Re: Kirk Meyer Announces ChASM Programming Language
Floyd Godfrey  Account Info

Hey man, make ChAsm for the 85 also. I know its ancient, but why buy an 86 when you have one that is practially the same. I hated the older lanuage. Too hard to get the concept. But I am willing to test ChASM on the 85 if ya want. Just drop me an email. I cant convert it or anything cuz I dont know shit about building a compiler.

     9 September 1999, 21:43 GMT

Re: Kirk Meyer Announces ChASM Programming Language
Stuart Bergstrom  Account Info

Would it be possible/practical to do this for 68k calcs? I've found asm pretty hard but I'd love to try C on my 89. Anyway, good idea and nice job making it (or so it looks ;-) ). Good luck in your other endeavors.

     10 September 1999, 21:35 GMT


Re: Re: Kirk Meyer Announces ChASM Programming Language
Kirk Meyer  Account Info
(Web Page)

There is C for the 89, and it's real C. The compiler is TIGCC. But just like all C, the code tends to be bigger and slower (as if 68k wasn't big enough as it is)

     11 September 1999, 00:17 GMT


Re: Re: Re: Kirk Meyer Announces ChASM Programming Language
Kaxman  Account Info

I wish i knew where I could learn to program. Where should I start? I wish I knew.

     11 September 1999, 00:52 GMT


Where to start programming
Rook  Account Info
(Web Page)

Start with QBasic. It comes with any Microsoft OS and is easier to learn than English. Check out www.qbasic.com for more info.

Rook

     13 September 1999, 08:08 GMT

Re: Kirk Meyer Announces ChASM Programming Language
taliessin penfound  Account Info

Seriously, though, somebody should make a powerful yet easy language such as QBasic, and make an optimizing z80 compiler for qb code. Any takers? I didnt think so.

     11 September 1999, 20:53 GMT

Re: Re: Kirk Meyer Announces ChASM Programming Language
Kirk Meyer  Account Info
(Web Page)

QBasic is powerful? Hmm... :) QBasic optimizer... that is an oxymoron. C already exists for most of the calculators I believe.

     11 September 1999, 23:14 GMT


QBasic compiler
Rook  Account Info
(Web Page)

A QBasic compiler shouldn't be too hard to make. If you can get 10 people that want it, I'll write a QBasic -> Z80 compiler for DOS.

Rook

     13 September 1999, 08:12 GMT


Re: QBasic compiler
Whitey

Considering I happen to like Qbasic, not to mention the wealth of QB games out there, a compiler is a good idea. I would certainly appreciate it.

Thanx, and The new assem. sounds great, maybe ill take acrack at learning it

     14 September 1999, 01:36 GMT


Re: Re: QBasic compiler
Kirk Meyer  Account Info
(Web Page)

Hm. Some things to consider. First of all, basic is meant to run off an interpreter (yes I know there are compilers, but that is what it was designed for). Obviously it would have to be a compiler in the case of a calculator. However. If C programs run somewhat slowly, can you imagine what a QBasic program would do??? I see nothing wrong with TI's BASIC if you want something easy... it is very easy... and also, you mention lots of games already available... I doubt it would be very portable, most games use graphics or at least expect an 80x25 terminal...

     14 September 1999, 02:35 GMT

ChASM... ChAOS... Hmm...
PaSTE  Account Info
(Web Page)

Man, I should have followed up on my origional idea for ChASM when I had it....

Just another file in the "Great ideas that Phil had but were never implemented." I'm glad someone thought of it, though. If I were to try making my own language, it'd never be done. Oh well.

Now if someone would just get my ChAOS idea off the ground with this new Flash ROM programming business...

     11 September 1999, 21:32 GMT
1  2  

You can change the number of comments per page in Account Preferences.

  Copyright © 1996-2012, the ticalc.org project. All rights reserved. | Contact Us | Disclaimer