|
Post by stiggity on May 24, 2022 17:27:59 GMT
Wendling!!!! KUDOS!! i haven't tried anything, but I'm impressed. You went from, To difficult, too, two bad a$s routines!!! I guess when your an advanced level ML programmer, accomplishing any task IS an option. I've been messing around with trying to get these directory channels open for days, and you make it look so easy. Welps Thanks!! and keep the faith!!
|
|
|
Post by stiggity on May 24, 2022 17:39:19 GMT
Wendling... i know theres alot of creation, testing, involved with ALL of these snippets, but if your not bored yet, may I ask you get another question??? How about open15,8,15:print#15,string$ i feel as though i irritated you somehow.. your a genius!! and you've helped me/other soooo much. lmk!!
|
|
|
Post by stiggity on May 24, 2022 18:18:26 GMT
Actually, after googling for 1/2 an hour I've still not found anything. If I open15,dv,15 how on Earth would I input#15,a,a$ ?
|
|
|
Post by stiggity on May 25, 2022 5:24:00 GMT
i have another, probably idiotic question...
If im using self modifying code, and i end-up with something like this..
LDA PLOPP,Y
STA C7+1
LDA PLOPP+1,Y
STA C8+1
lda $3e ;save basic text pointer
pha
lda $3d
pha
C7 LDA #<$FFFF
C8 LDX #>$FFFF
sta txto+1
stx txto+2
sta $3d
stx $3e
then, attempt to use txto as a buffer.. how do i get txto+1 and txto+2 to equal a regular "cbuffer" or "buffer" any buffer, so it's possible too.
ldy #$00 loopff
lda filenm,y
sta txto+8,y
iny
cpy length bne loopff
It's late, and I've been at it for hours..if more code needs uploaded, please let me know..
|
|
|
Post by stiggity on May 26, 2022 5:13:10 GMT
Thats was great!! I figured it all out. Did it the e-z way, but dealing with more kernal calls, increases the chances of a confliction..
Wendling!!! great code!! it kept me busy all day. Thanks a lot!!!!
|
|
|
Post by wsoft on May 28, 2022 1:26:09 GMT
In WsBasic I made a command called "subend". What this did was it popped the gosub pointer twice in order to erase the last low and high byte pointer to the basic program text and essentially, if your program encountered another "return", execution would resume after the previous "gusub" statement". It was a way to bail from a subroutine without being forced back to the subroutine that called it, and if there were no parent subroutines it would bail with a "subend without gosub" error.
|
|
|
Post by wsoft on May 28, 2022 1:36:47 GMT
"Do, Loop, and Exit" require that you build an entire seperate stack that works on the same principle (last in first out) because for every "do" you must record which token was found, and if it is a"loop", store the low and high byte of $0079 onto the pseudo stack, and later when the program falls upon an "exit" these bytes can be "popped" from the pseudo stack and program execution can resume after the "loop" statement.
I wish I had half as many brain cells as then... lol
|
|
|
Post by stiggity on Jun 19, 2022 21:54:30 GMT
WSOFT: I'm beginning to think a little more logical. Thats some complicated code. I mean, there isn't much c128 ML examples, and everything has to be from the ground-up!! I appreciate your help! And, of course here's a silly question..
If bank kernal out
lda #$30 sta $ff00
can i still read from zero page??
i've run into snag.. code ($exxx) is attempting to read current columns ($EC) and im not getting any useable results.. just yes/now?? ZP can be read while kernal is out??
-Thank you!!!!
|
|
|
Post by stiggity on Jul 29, 2022 4:52:34 GMT
Wendling?
Hope everything's alright!!! been 2 months!?!??!
Let's say a BASIC prg is running, and theres been 4 gosub calls, with only ....2 "returns"? or, maybe.. theres 2 floating gosubs.. i've looked at your code, but i dont want to perform a RETURN ($5264), i just want to manipulate the stack so it thinks there are Zero gosubs floating... like a routine that can be called even if there aren't any gosubs called, or possibly 6 or 7... like a gosub sweeper? after its called, the basic syntax "return" would cause a 'return without gosub' error...
How could i use your original example in those boundaries..
Thanks!!!
|
|
|
Post by stiggity on Jul 29, 2022 16:51:24 GMT
its working like a charm!!!
|
|