SuperBASIC Quirks

Anything QL Software or Programming Related.
User avatar
pjw
QL Wafer Drive
Posts: 1622
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: SuperBASIC Quirks

Post by pjw »

To see whats going on, one might like to try the following:

Code: Select all

10 PRINT F2H$(28)
20 X = 1.4 * 20
30 PRINT F2H$(X)
40 PRINT F2H$(INT(ABS(X)))
50 :
100 DEFine FuNction F2H$(n)
110 LOCal a, f$(14)
120 a = ALCHP(6)
130 POKE_F a, n
140 f$ = '$' & HEX$(PEEK_W(a), 16) & HEX$(PEEK_L(a + 2), 32)
150 RECHP a
160 RETurn f$
170 END DEFine F2H$
180 :


Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
Post Reply