In order to participate in competitions for space-optimized programs (like BASIC 10 Liner), it is advisable to reduce the size of each keyword. In ugBASIC this is possible because each keyword has an equivalent translation in a two (or three) character abbreviation.
Example:
LOCATE 10, 10 : REM 13 characters Lc10,10 : REM 7 characters
Note that ugBASIC does not need keyword separators. It follows that those commands formed by several keywords can be not only abbreviated but also “merged” with each other.
Example:
POSITIVE CONST c = 42 (21 characters) PstC# c = 42 (12 characters)
The exception to this rule is the use of variables and constants. Indeed, since variables and constants can contain uppercase characters such as the second letter onwards, it is necessary to separate the keyword from the variables/constants:
Example:
PUT IMAGE x AT 42,y (19 characters) PuImx At42,y (12 characters)
Abbreviation | stand for |
---|---|
By | BYTE |
Dwd | DWORD |
Aa | AAHS |
Ab | ABS |
Ac | ACCORDION |
Ao | ACOUSTIC |
Af | AFTER |
Ag | AGE |
Ago | AGOGO |
All | ALL |
Alw | ALLOW |
Al | ALT |
Alt | ALTO |
Ap | APPLAUSE |
Ar | ARRAY |
As | AS |
Ax | ASC |
Ascii | ASCII |
Ascx | ASCII |
Asm | ASM |
Atl# | ATLAS |
Atm | ATMOSPHERE |
Ak | ASTERISK |
At | AT |
Ata | ATARI |
Axl | ATARIXL |
Ad | ADD |
An | AND |
Aw | ARROW |
Asy | ASYNC |
Aud | AUDIO |
Au | AUTO |
Av | AVAILABLE |
Ba | BACK |
Bg | BACKGROUND |
Ban | BANJO |
Bk | BANK |
Br | BAR |
Bar | BARITONE |
Bas | BASS |
Bss | BASSOON |
Be | BEG |
Bel | BELL |
Bet | BETA |
Bn | BELONG |
Big | BIG |
Bi | BIN |
Bin | BINARY |
Bt | BIT |
Bm | BITMAP |
Bms | BITMAPS |
Bl | BLACK |
Blt | BLIT |
Blk | BLOCK |
Bu | BLUE |
Bx | BOX |
Brn | BROWN |
Boo | BOOM |
Bo | BORDER |
But | BUT |
Bf | BUFFER |
Ca | CALL |
Cn | CAN |
Cp | CAPS |
Cpl | CAPS |
Cs | CASE |
Cd | CDOWN |
Ce | CENTER |
Cg | CGOTO |
Chk | CHECK |
Ch | CHR |
Ci | CIRCLE |
Cla | CLAMP |
Css | CLASS |
Clr | CLEAR |
Cle | CLEFT |
Cln | CLINE |
Cli | CLIP |
Cl | CLS |
Cmo | CMOB |
Cm | CMOVE |
Cc | COCO |
Co | CODE |
Col | COLLISION |
Cr | COLOR |
Crs | COLORS |
Com | COLOURMAP |
Clm | COLUMN |
Cms | COLUMNS |
Cmb | COMBINE |
Cx | COS |
Cmp | COMPLETE |
Cpr | COMPRESS |
Cprs | COMPRESSION |
Cfg | CONFIGURE |
Cns | CONSOLE |
Ctrl | CONTROL |
Cpy | COPY |
Crt | CREATE |
Crg | CRIGHT |
Cxx | CSET |
Csp | CSPRITE |
Cu | CUP |
Curs | CURSOR |
Cy | CURSOR |
Cyc | CYCLES |
p | PEEKW |
Pkw | PEEKW |
k | POKEW |
Pow | POKEW |
Dk | DARK |
Da | DATA |
Dc | DEC |
Dec | DECLARE |
Dft | DEFAULT |
Dfg | DEFDGR |
De | DEFINE |
Deg | DEGREE |
Dy | DELAY |
Del | DELETE |
Ds | DESTINATION |
Des | DESTROY |
Det | DETECTION |
Dial | DIALECT |
Di | DIM |
Dir# | DIRECTION |
Dx | DISABLE |
Dl | DLOAD |
Dj | DOJO |
Djk | DOJOKA |
Dst | DISTANCE |
Dv | DIV |
Do | DO |
Db | DOUBLE |
Dw | DOWN |
Dr | DRAW |
Dg | DRAGON |
Dsa | DSAVE |
Dt | DTILE |
Dts | DTILES |
Du | DUP |
Dyn | DYNAMIC |
Ell | ELLIPSE |
El | ELSE |
Eif | ELSEIF |
Emb | EMBEDDED |
Em | EMPTY |
Emt | EMPTYTILE |
Ee | END |
Ei | ENDIF |
End | ENDIAN |
Es | ENDSELECT |
Ens | ENDSTORAGE |
En | ENABLE |
Env | ENVELOPE |
Eq | EQUAL |
Er | ERROR |
Ex | EXIT |
Exp | EXPAND |
Ex1 | EXPLICIT |
Exx | EXPLOSION |
Ev | EVERY |
Fa | FALSE |
Fst | FAST |
Fil | FILL |
Fi | FIRE |
Fnd | FIND |
Fl | FLIP |
Ft | FLOAT |
Fnt | FONT |
Fo | FOR |
Fd | FORBID |
Fr | FRAME |
Frs | FRAMES |
Fre | FREE |
Fm | FROM |
Fu | FUNCTION |
Gl | GAMELOOP |
Ge | GET |
Gb | GLOBAL |
Gd | GOLD |
Go | GOTO |
Gs | GOSUB |
Gr | GRAPHIC |
Gy | GRAY |
Gre | GREEN |
Ht | HALT |
Htd | HALTED |
Hg | HEIGHT |
Hx | HEX |
Hi | HIRES |
Hm | HOME |
Hz | HORIZONTAL |
Hs | HSCROLL |
Ia | IAF |
Id | ID |
If | IF |
Ig | IGNORE |
Im | IMAGE |
Ims | IMAGES |
Imp | IMPLICIT |
In | IN |
Ik | INK |
Idx | INDEX |
Iky | INKEY |
Ip | INPUT |
Ins | INSERT |
Inx | INST |
Inst | INSTRUMENT |
Inv | INVERSE |
Int | INT |
Intr | INTERRUPT |
Ist | INSTR |
Jd | JDOWN |
Jf | JFIRE |
Jl | JLEFT |
Jr | JRIGHT |
Ju | JUP |
Jy | JOY |
Jyx | JOYX |
Jyy | JOYY |
Jyt | JOYSTICK |
Jyc | JOYCOUNT |
Ky | KEY |
Kyg | KEYGET |
Kyb | KEYBOARD |
Ks | KEYSHIFT |
Kt | KEYSTATE |
Ki | KILL |
Lay | LATENCY |
La | LAVENDER |
Ly | LAYER |
Lb | LBOUND |
Lca | LCASE |
Lf | LEFT |
Le | LET |
Li | LIGHT |
Lit | LITTLE |
Ln | LINE |
Ld | LOAD |
Lc | LOCATE |
Lk | LOCK |
Lg | LOG |
Lgn | LOGIN |
Lo | LONG |
Lp | LOOP |
Lw | LOWER |
Mg | MAGENTA |
Mk | MASKED |
Mx | MAX |
Mm | MEMORY |
Me | MEMORIZE |
Msg | MESSAGE |
Mi | MID |
Mid | MIDI |
Mn | MIN |
Min | MINUS |
Mb | MOB |
Mv | MOVE |
Mmv | MMOVE |
Mc | MONOCOLOR |
Msp | MSPRITE |
Mu | MUL |
Mcs | MULTICOLOR |
Mlt | MULTI |
Mus | MUSIC |
Na | NAMED |
Naw | NARROW |
Ni | NIBBLE |
Nl | NEWLINE |
Nx | NEXT |
Nw | NEW |
No | NORMAL |
Nn | NONE |
Np | NOP |
Nt | NOT |
Ne | NOTE |
Nr | NRM |
Nts | NTSC |
Of | OFF |
Ofs | OFFSET |
Ol | OLIVE |
On | ONLY |
Opc | OPACITY |
Op | OPTION |
Or | ORANGE |
Og | ORIGIN |
Ou | OUT |
Ov | OVERLAYED |
Pd | PAD |
Pg | PAGE |
Pa | PAPER |
Pr | PARALLEL |
Pau | PAUSE |
Pc | PCLS |
Pm | PARAM |
Pch | PEACH |
Pk | PEEK |
Pkd | PEEKD |
Pn | PEN |
Pex | PER |
Per | PERIOD |
Pi | PI |
Pin | PING |
Pik | PINK |
Pla | PLACE |
Py | PLAY |
Pl | PLOT |
Plu | PLUS |
Pmd | PMODE |
Pt | POINT |
Po | POKE |
Pod | POKED |
Ply | POLYLINE |
Prt | PORT |
Psg | PSG |
Pst | POSITIVE |
Pnd | POUND |
Pp | POP |
Ps | POSITION |
Pw | POWERING |
Pre | PRECISION |
Prs | PRESET |
Pv | PRESERVE |
Px | PRESSED |
Prb | PROC |
Prc | PROC |
Prcd | PROCEDURE |
Prg | PROGRAM |
P%t | PSET |
Pur | PURPLE |
Pu | PUT |
Rdn | RADIAN |
Rd | RANDOM |
Rdm | RANDOMIZE |
Rst | RASTER |
Rte | RATE |
Ra | RATIO |
Ron | READONLY |
R#y | READY |
Rc | REC |
Rcv | RECEIVE |
Re | RED |
Rel | RELATIVE |
Rl | RELEASE |
Rm | REMEMBER |
Rpt | REPEAT |
Rep | REPLACE |
Rn | RESPAWN |
Rex | RESIDENT |
Res | RESOLUTION |
Rer | RESTORE |
Rsm | RESUME |
Rts | RETRIES |
Rt | RETURN |
Rg | RIGHT |
Ro | ROLL |
Rot | ROT |
Rw | ROW |
Rws | ROWS |
Sa | SAFE |
Sv | SAVE |
Scn | SCAN |
Scc | SCANCODE |
Scs | SCANSHIFT |
Sc | SCREEN |
Scl | SCROLL |
Sec | SECOND |
sk | SEEK |
Sl | SELECT |
Sem | SEMIGRAPHIC |
Sen | SEND |
Sep | SEPARATOR |
Seq | SEQUENCE |
Se | SET |
Sg | SGN |
Shs | SHADES |
Sr | SHARED |
Sho | SHOOT |
Sgnd | SIGNED |
Sn | SIN |
Sng | SINGLE |
Sz | SIZE |
SlC | SLICE |
So | SOUND |
Src | SOURCE |
Sp | SPACE |
Sw | SPAWN |
Ss | SPC |
Spe | SPEED |
Spr | SPRITE |
Stk | STACK |
Std | STANDARD |
Sta | START |
Stt | STATE |
Stc | STATIC |
Stp | STEP |
St | STOP |
Str | STORAGE |
Sti | STRIP |
Spt | STRPTR |
Su | SUCCESS |
Swp | SWAP |
Syn | SYNC |
Sy | SYS |
Sys | SYSTEM |
Tb | TAB |
Tn | TAN |
Tar | TARGET |
Ts | TASK |
Tmp | TEMPORARY |
Tx | TEXT |
Txm | TEXTMAP |
Txa | TEXTADDRESS |
Th | THEN |
Thr | THREAD |
Th2 | THRESHOLD |
Tk | TICK |
Tks | TICKS |
Tm | TILEMAP |
Tl | TILE |
Tls | TILES |
Tse | TILESET |
Tmr | TIMER |
To | TO |
Tu | TURQUOISE |
Trs | TRANSPARENCY |
Tra | TRANSPARENT |
Tr | TRUE |
Ty | TYPE |
Uca | UCASE |
Ug | UGBASIC |
Ub | UBOUND |
UNb | UNBANKED |
Uq | UNIQUE |
Uns | UNSIGNED |
Un | UNTIL |
Upd | UPDATE |
Up | UPPER |
Ux | USE |
Va | VAL |
Vu | VALUE |
Vus | VALUES |
Vr | VAR |
Vbk | VARBANK |
Vbp | VARBANKPTR |
Vp | VARPTR |
Vb | VBL |
Vas | VARIABLES |
Ve | VERTICAL |
Vd | VIDEO |
Vi | VIOLET |
Vs | VISIBLE |
Vo | VOLUME |
Vscl | VSCROLL |
Wt | WAIT |
Wa | WAIT |
Wv | WAVE |
We | WEND |
Wi | WITH |
Wio | WITHOUT |
Wid | WIDE |
Wd | WIDTH |
Wh | WHILE |
Wht | WHITE |
Wrt | WRITING |
Wo | WORD |
Xg | XGRAPHIC |
Xr | XOR |
Xcs | XCURS |
Xt | XTEXT |
Xp | XPEN |
Yg | YGRAPHIC |
Ycs | YCURS |
Ye | YELLOW |
Yi | YIELD |
Yt | YTEXT |
Yp | YPEN |