Login
Back to forumReply to this topicGo to last reply

Posted By

bszggg
on 2013-11-02
17:14:05
 new basic command - Új basic utasítás

Hi! Sziasztok!
(Sorry, my english is poor)

I write a new command to my SD2IEC hardware. Just type CD// into the BASIC interpreter.
Írtam egy új parancsot az SD2IEC hardveremhez. Csak be kell gépelni cd// a BASIC-ba.

It is change the DIR.
Ez vált könyvtárat.
But I can not receive the numbers. Where find the numbers after the typed commans?
De én nem kapom meg a számokat. Hol találom a számokat amit a parancs után gépeltem?

It is work. Ez működik:
cd/dirname

It is nor work. Ez nem működik:
cd/dir01


The test program is here:
http://bencsikszilveszter.hu/plus4/plus4/dload/cdrun.prg


after the run, it will be copied the routin to $7000
indítás után $7000-re másolja magát a rutin.

The lastest typed command available visit in $7100
Az utolsó beírt parancsot a $7100-as címre teszi.

A kérdés, hogy milyen címről kellene kimásolnom a felhasználói parancs után írt számokat a sorvégig:
The question is, what address should copy these numbers were written after the user command line endings.

Thanks to help!
Előre is köszi a segítséget!

Posted By

Csabo
on 2013-11-02
19:03:42
 Re: new basic command - Új basic utasítás

I think this might be what you're looking for, there are two ROM routines that can help:
$9491 : check comma
$9D84 : get one byte to x register.

This little example will let you set a TED register:
A 012C JSR $9491
JSR $9D84
STX $D0
JSR $9491
JSR $9D84
TXA
LDX $D0
STA $FF00,X
RTS


To use, you can do something like this:
SYS300,DEC("15"),DEC("32") : REM $32 to $FF15, set background color to red
SYS300,DEC("11"),DEC("38") : REM $38 to $FF11, turn up the volume and turn on both channels


Posted By

bszggg
on 2013-11-17
18:13:41
 Re: new basic command - Új basic utasítás

I will try this knowledge..
Thanks. happy
-----

Hát próbálkoztam, de nem jártam sikerrel.
Az fenti linkelt programban az indítás után kialakult 7060-as címtől kezdődően (itt már csak akkor fut le, ha a parancs "cd"-vel kezdődik) beírtam, hogy hívja meg az "$9D84 : get one byte to x register" függvényt, és amit visszaad azt kiteszem a képmemóriába, de ezzel nem jártam sikerrel.
konkrétan "syntax error"t produkáltam. és semmit nem tett ki.

Próbáltam korábban belépni az említett függvénybe, hogy a mutatót is tolja meg egy-el, de úgy sem jutottam elölrébb.

Próbáltam a $9d67-et behívni előbb, "sztringparaméterek beolvasása" de akkor meg full butaságokat csinált szegény..
általában az illegal quantity volt a végeredmény.

Pedig jó lenne valahogy megkapni a basic parancs utáni többi adatot is. Nagyobb terveim is vannak..



 Re: new basic command - Új basic utasítás

(it just a translate)

I will try this knowledge ..
Thanks.
-----

Well, I tried, but no luck.
The above linked program since evolved after starting 7060 as title given to him (here we will only run when the command starts with "CD",) I wrote to call the "$ 9D84: Get one byte to x register" function I put it out and return it to the image memory, but with no luck.
specifically "syntax error" was produced. and did nothing about it.

I tried to access the previously mentioned functions, the pointer is a push-out, but I got no elölrébb.

I tried the $ 9d67 was first called up, "sztringparaméterek read" full but you do stupid things .. poor
usually been the result of illegal quantity.

I wish I could somehow get all the data after the basic command. There are bigger plans for it ..

Posted By

SVS
on 2013-11-18
02:31:54
 Re: new basic command - Új basic utasítás

$9D84 routine must be preceded by JSR $9D81 (this one needs address in $3B, $3C).
Syntax error exits when value is > 255.

Posted By

bszggg
on 2013-11-18
15:38:45
 Re: new basic command - Új basic utasítás

Szánom bánom, de nem megy..
baco70007087.prg

Ha valaki esetleg belenézne...
g7000-el indul, és $7066 -tól van az ominózus rész.
A beolvasott karaktereket átteszi a $0c00-ra.
Egy karaktert ír csak ki. és az mindig ugyanaz, és nem is tudom, hogy mi alapján kerül oda.
Lehet hogy teljesen máshogy kéne ezt csinálni...



 Re: new basic command - Új basic utasítás

It is not work for me.

If anybody look this..
g7000 is a run place And $7066 is the get parameter section..
The readed chat take to $0c00.
It is write only one char. (not the parameters)

I think, need is a full different solution... for the problem.



Back to topReply to this topic


Copyright © Plus/4 World Team, 2001-2024