Sa., 07 Juni 2025 20:29:17 +0200

C64 BASIC V2.0: Funktion: POS

-


Letztes Update am Sa., 31 Mai 2025 12:23:20 +0200 von Andreas Potthoff

POS

  • Token: 185 / $B9 | Abkürzung: – | ROM Exec: 45982 / $B39E
  • Typ: Funktion, numerisch | Funktion: Arithmetik
  • Syntax: POS (<dummy>)

Aktion, Hinweise, Tipps, Tricks:

Gibt die aktuelle Cursorposition an, die sich im Bereich von 0 (ganz links) bis Position 79 einer 80-stelligen Bildschirmzeile befindet. Da der Commodore 64 einen 40-Spalten-Bildschirm hat, bezieht sich jede Position zwischen 40 und 79 auf die zweite Bildschirmzeile. Das Dummy-Argument wird ignoriert.


Beispiele:

    1000 IF POS(0)>38 THEN PRINT CHR$(13)


BefehleCLOSE, CLR, CMD, CONT, DATA, DEF, DIM, END, FOR, GET, GET#, GOSUB, GOTO, IF, INPUT, INPUT#, LET, LIST, LOAD, NEW, NEXT, ON, OPEN, POKE, PRINT, PRINT#, READ, REM, RESTORE, RETURN, RUN, SAVE, STOP, SYS, VERIFY, WAIT
Befehle Spezial (Bywords)FN, GO, NOT, SPC(, TAB(, THEN, TO, STEP
Arithmetische und logische Operatoren+, , *, /, ^, >, =, <, AND, OR
FunktionenABS, ASC, ATN, CHR$, COS, EXP, FRE, INT, LEFT$, LEN, LOG, MID$, PEEK, POS, RIGHT$, RND, SGN, SIN, SQR, STR$, TAN, USR, VAL
Konstanten und SystemvariablenPi, ST, TI, TI$
image_pdfimage_print
Andreas Potthoffhttps://electrodrome.net
Computer-Nerd seit der ersten 8-bit Generation (1981), SysOp, IT-Spezialist, System Administrator, Webmaster, Maker...
0 0 votes
Artikel Bewertung
Datenschutz
0 Kommentare
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Related Stories

0
Would love your thoughts, please comment.x