View Full Version: Assembly Macros? Could they be used to make a new language?

dex >>DexOS >>Assembly Macros? Could they be used to make a new language?


tonyMac- 03-28-2008

My decision on math is to make all math require LET statements, and to use fixes to translate +-*/ into commas, as well as utilize the Pascal "=:" This will mean a limited number of ops per line, but I'm not sure how to go about anything more sophisticated.

rCX- 05-19-2008

Good work so far. I learned programming from QBASIC and it's always good for an OS to have some kind of basic for beginners. Are you going to call it DexBASIC? 8)

'ra- 05-20-2008

When I look at Pitman game in DexOS, I remember there is a basic interpreter that was coded in MASM32. The interpreter was running in 32bit mode. I think it's still available as freeware incl/ the source here: http://www.programmersheaven.com/download/35502/download.aspx Since I do not know assembly, may you guy could convert them to FASM source. I think interpreter is much economical since only need to keep a single basic source file to run and edit for each program. It's good for small environment like DexOS. ;)

Dex- 05-20-2008

roboman ported a basic interpreter for DexOS, its the one thats based on, you can get it here: http://dex4u.com/tinyb.zip Its not finished yet, but its a good start :) .

rCX- 05-20-2008

I tried it but it keeps printing "WHAT?" although it accepts my commands. :? I'll have to experiment more with it.

roboman- 05-21-2008

It's very ruff and not done !!!!It was a very basic basic, then the translation wasn't done all that great and mine was worse. The phraser and math section are the only two good things about it. I mostly posted it because some one else had brought up wanting to write a basic. a line like: PRINT "hello world" works, or: PRINT 37 + 25 Would give you the result.It's kind of pointless with out the ability to run more then one line. The phraser is the same one I used in eliza so that and the math stuff would be an ok starting point to write a basic. But in my view every thing else needs to be a total rewrite, sorry. If I'm recalling right, the commands need to all be in caps. That's the way the old code was and I don't think I got as far as to changng that

Dex- 05-21-2008

Also use caps for the commands.

rCX- 05-21-2008

Thanks guys :)

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.