I've never used Celtic before, so can someone post a program showing the correct usage of some basic Celtic commands? =)
Reapex wrote:
I've never used Celtic before, so can someone post a program showing the correct usage of some basic Celtic commands? =)
So Doors CS supports the same set of commands as Celtic III, which supports four sets of commands:

:: Celtic III-specific commands, beginning det(...
:: PicArc-specific commands, beginning identity(...
:: XLib-specific commands, beginning real(...
:: Partial Omnicalc command set, beginning real(... as well.

I'll go put up a summary of all the commands on the DCS wiki, but you can also check out this summary in Celtic III's readme:


Code:
________________________
: COMMAND LIST SUMMARY | c013
-----------------------/
TOGGLESET     00 det(0,"FN",f#) 0=Arc;1=Lk;2=PA;3=Hid;4=Del;5=Crt;6=PS;7=Stat
NUMTOSTRING   01 det(1,var) Out:type code
GETLISTELEM   02 det(2,"LN",elem) out:lNAME(elem) -> Real/Cpx
GETARGTYPE    03 det(3,argofanytype) filetype code
CHKSTATS      04 det(4,f#) 0=RAM 1=ARC 2=ID 3=OSVER
LINEREAD      05 det(5,"FN",line#,[#oflines])
LINEWRITE     06 det(6,"STR","FN",line#)
LINEERASE     07 det(7,"FN",line#,[#oflines])
LINEREPLACE   08 det(8,"STR","FN",line#,[#oflines])
FINDPROG      09 det(9,["SEARCH"])
UNGROUPFILE   10 det(10,"GFN")
GETGROUP      11 det(11,"GFN")
EXTGROUP      12 det(12,"GFN",item#)
GROUPMEM      13 det(13,"GFN",item#)
BINREAD       14 det(14,"FN",bytestart,#ofbytes)
BINWRITE      15 det(15,"HEX","FN",bytestart)
BINDELETE     16 det(16,"FN",bytestart,del#ofbytes)
HEXTOBIN      17 det(17,"484558")
BINTOHEX      18 det(18,"BIN")
FASTCOPY      19 det(19) LOLWUT?
EXECHEX       20 det(20,"C9")
EDIT1BYTE     21 det(21,Str?,StartByte,ReplaceWithThisByte)
MODECHANGE    22 det(22...) Not implemented
INDEXFILE     23 det(23,"FILENAME","NEWINDEXNAME")
LOOKUPINDEX   24 det(24,"FILENAME","INDEXNAME",line#,[#oflines])
ERRORHANDLE   25 det(25,function,string)
MATTOSTR      26 det(26,Matrix#)
STRINGREAD    27 det(27,"binstring",start,readThisMany)
HEXTODEC      28 det(28,"HEXSTRING")
DECTOHEX      29 det(29,SomeRealNumber,[autoOverride])
EDITWORD      30 det(30,start_byte,replace_with_this_word)
BITOPERATE    31 det(31,value1,value2,logic)
GETPROGLIST   32 det(32,"SEARCHSTRING",[type])

DBQUERY1      00 identity(0,"DB",f#,args) 0=fm;1=ad;2=dl;3=di;4=ac;5=cb;6=cp
TOGGLEPIC     01 identity(1,pic#,f#) 0-7=picToBuf;8=newPic;9=TARC;10=del
GETPICGROUP   02 identity(2,"GFN")
EXTPICGROUP   03 identity(3,"GFN",pic#)
STRINGTILE    04 identity(4,"BSTR",xS,xE,yS,yE,W,xO,yO,pic#S,displogic)
PUTSPRITE     05 identity(5,ScrewDocumentingThisCommand)
SHIFTSCREEN   06 identity(6,sft#,sftDir,scrnUpdate)
DRAWBOX       07 identity(7,x1,y1,x2,y2,dispmeth)
FILLMAP       08 identity(8,"HEXSTRING",right,down,LOGIC,updateLCD)
BOXSHIFT      09 identity(9,x,y,w,h,shiftType,shiftRepeat,updateLCD)
DRAWTEXT      10 identity(10,flag,[x,y],"TEXT")
COPYBOX       xx identity(xx,x1s,y1s,x2s,y2s,x1d,y1d,x2d,y2d,dispmeth)

ClearScreen   00 real(0,ULCD)
DrawSprite    01 real(1,x,y,w,h,p#,pX,pY,flp,ULCD)
DrawTileMap   02 real(2,MTRX#,xO,yO,W,H,xS,xE,yS,yE,p#,LOGIC,tSiz,ULCD)
RecallPic     03 real(3,p#,LOGIC,ULCD)
ScrollScreen  04 real(4,scrDir,scrStep,ULCD)
ChngConstrast 05 real(5,f#,val). 0=SetContrast;1=ReturnCurrentContrast
UpdateLCD     06 real(6) See FASTCOPY. LOLWUT?
RunIndicator  07 real(7,value) 0=off;1=on
GetKey        08 real(8) Returns keycode
CreatePIC     09 real(9,f#,p#) 0=stoPic;1=DelPic
ExecArcPrgm   10 real(10,f#,tPrg#) Pass Ans="FN"
GetCalcVer    11 real(11)  Returns calcver. 0=83+;1=SE;2=84+;3=SE
DrawShape     12 real(12,shapeType,x1,y1,x2,y2,ULCD)
TextMode      13 real(13,f#,[chr]) 0=inv;1=un;2=lwrcse;3=un;4=outputchar
CheckRAM      14 real(14) Returns amount of free RAM.

sprite()      20 real(20,pic#,picX,picY,w,h,x,y,[logic])
ExecAsm()     33 real(33,"HEXSTRING")
*bump* I started to add more detailed documentation on these functions to the wiki from the Celtic III readme. Would anyone have 30 or 40 minutes today to help me add the remainder?
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement