Search results
string in memory
Score: 170.98 %,
Type: Forum topic , Comments: 14 comments
at &H";HEX$(I);": ";CHR$(C);C:NEXT
See it live: https://msxpen.com/codes/-MTtA_WMng0wnKfTYQQf
What ... if it fits into Don't know if it fits into your code, but using sprite$(0)="test" and then in listing B tx$=sprite$(0) could work. The length of the string is limited though.
Quote:
Not sure, ...
value to string
Score: 169.27 %,
Type: Forum topic , Comments: 6 comments
Oh man, my msx basic knowledge left me.. I feel like a msx basic rookie
If forgot how to use a value as string.
I have:
1 VA = 1
2 VA=VA+1
3 TX$="test"+VA
As a result I want TX$="test2"
But line 3 throws a type ...
bload with string variable
Score: 152.24 %,
Type: Forum topic , Comments: 4 comments
Probably a simple question but I just can't find the correct syntax.
What is the correct way to load a picture ?
10 screen7
20 a$="TEST"
30 bload "" + A$ + ".SC7"+CHR$(34)+",s"
40 goto 40
I ...
peek value to int
Score: 149.2 %,
Type: Forum topic , Comments: 2 comments
Hi, I have a question.
I did the following test in basic:
10 poke &HC001,10
20 if peek(&HC001) = 10 then 40
30 goto 30
40 goto 40
Instead of goto to line 40, the code stops in line 30.
Looking deeper into the peek function, ...
dim msx basic
Score: 148.95 %,
Type: Forum topic , Comments: 27 comments
120 REM ---------------
130 TIME = 0
140 FOR I = 0 TO 31
150 FOR J = 0 TO 15
160 X(I,J) = 0
170 NEXT ... ---------------
230 TIME = 0
240 FOR I = &HC000 TO &HC1FF
250 POKE I, 0
260 NEXT
270 PRINT"POKE TIME:";TIME
300 REM ---------------
310 REM dim read loop
320 REM ---------------
330 TIME = 0
340 FOR I = 0 ...
MSX basic help needed
Score: 148.92 %,
Type: Forum topic , Comments: 5 comments
Hi there,
I'm making a puzzle game in msx basic and working with data for the first time.
At a certain point I declare a dimension like this:
340 DIM X(31,15)
350 R=0:N=0
360 READ X(N,R)
later on I use:
600 ERASE X
to empty the dim. But when I later in the listing return to line ...
get rgb values
Score: 148.19 %,
Type: Forum topic , Comments: 7 comments
Hi there,
I was wondering how to get the rgb values of a color in msx basic ?
If you for instance want to change a color, you can use color=(5,1,2,3).
But what command do I need to get the rgb values of color 5 ?
i thought you need to ...
Path name
Score: 138.22 %,
Type: Forum topic , Comments: 7 comments
Drive number (0=current, 1=A: etc)
DE = Pointer to 64 byte buffer
Results: ... it.
It tried _getcd("0"), _getcd(0) but it all returns syntax error
_GETCD ...
10 _turbo on
20 '#I 17,P$,19,1,89,0,205,125,243,237,177,237,82,43,235,43,115
30 ? "Current ...
Start dos program from basic with long name
Score: 138.19 %,
Type: Forum topic , Comments: 8 comments
to only have 8 digits. I need more
1 FORI=&HFBF0TO&HFC18: POKEI,0:NEXT
2 POKE&HF3FA,&HF0: POKE&HF3FB,&HFB: POKE&HF3F8,&HF9: POKE&HF3F9,&HFB
3 POKE&HFBF0,ASC("V")
4 POKE&HFBF1,ASC("G")
5 POKE&HFBF2,ASC("M")
6 ...
list files in basic
Score: 138.13 %,
Type: Forum topic , Comments: 4 comments
Hi there,
I'm trying to make a simpel basic file menu tool to list all the files on a disk. I know there is the FILES command, but I want to put the result in a list (or data) so I can display them in my own program (and later use the to be ...
