Search found 253 matches

by marste
Wed Aug 27, 2014 7:28 pm
Forum: Development
Topic: Waiting some time!
Replies: 21
Views: 8655

Re: Waiting some time!

marste wrote:Sorry, forgot to mention in the post: should be machine code (and should consume as minimum amount of byte as possible)!...
PS: I already tried something similar but seems to fast even repeating it few times:

LD B,0
WAIT: DJNZ WAIT
by marste
Wed Aug 27, 2014 7:25 pm
Forum: Development
Topic: Waiting some time!
Replies: 21
Views: 8655

Re: Waiting some time!

Sorry, forgot to mention in the post: should be machine code (and should consume as minimum amount of byte as possible)!...
by marste
Wed Aug 27, 2014 6:56 pm
Forum: Development
Topic: Waiting some time!
Replies: 21
Views: 8655

Waiting some time!

After having discussed the user input here I'm for the next help request! (hope the result of my efforts will be nice surprise for this community! 8-)) The problem is simple: how to wait some predefined fraction of second (with minimum space requirement)? I do not need to do anything in the meantime...
by marste
Fri Aug 22, 2014 7:17 am
Forum: Development
Topic: INPUT A$ in assembly
Replies: 10
Views: 3893

Re: INPUT A$ in assembly

Would you consider returning from the machine code to just do the INPUT in BASIC? This will be the easiest and probably the smallest. Yesss!... I was thinking the same! :) The following code gets the A$ at line 110 from NXTLIN and some increments and stores this at CH-ADD. It then calls "look-vars"...
by marste
Wed Aug 20, 2014 9:31 pm
Forum: Development
Topic: INPUT A$ in assembly
Replies: 10
Views: 3893

Re: INPUT A$ in assembly

Regarding this new variant seems to work too //...// (and I have the same curiosity on how is possible to return back to the same place after a jump! :)) I tried to change the last instruction instead of "jp endofprogram" to "jp startofprogram" but seems it is not working (the program ends anyway w...
by marste
Wed Aug 20, 2014 9:13 pm
Forum: Development
Topic: INPUT A$ in assembly
Replies: 10
Views: 3893

Re: INPUT A$ in assembly

You're right! And this seems to work too and is two bytes shorter. It just interprets "INPUT A$". Regarding this new variant seems to work too!! :D :D I had to "rewrite a bit for TASM to work: startofprogram: .org 4082h ld hl,instructiontextinputadollar ld (4016h),hl ; CH_ADD jp 0CDEh ; LINE-NULL ?...
by marste
Wed Aug 20, 2014 8:31 pm
Forum: Development
Topic: INPUT A$ in assembly
Replies: 10
Views: 3893

Re: INPUT A$ in assembly

In the code in the attachment ... It works! :D Before seen your last answer I tried to disassemble myself and seems I did despite 25+ years of not using Z80 code anymore! (btw never used it on ZX81) rem content to run: 33 21 LD HL,408E ; 16526 -> A$ ADDRESS OF THE PRINT STATEMENT 142 8E 64 40 34 22...
by marste
Tue Aug 19, 2014 8:01 pm
Forum: Development
Topic: INPUT A$ in assembly
Replies: 10
Views: 3893

INPUT A$ in assembly

I need to read in assembly ZX81 a little string as user input. I've seen various routines that allow to read it 1 character at a time. I was wondering if there is a possibility to call the standard basic subroutine that perform the instruction "INPUT A$". It will have various advantages: 1. should b...
by marste
Sat Aug 16, 2014 3:34 pm
Forum: Development
Topic: ZX81-IDE Software Development Tool, IDE
Replies: 44
Views: 52070

Re: ZX81-IDE Software Development Tool, IDE

Happy to test! :)
by marste
Tue Aug 12, 2014 5:11 pm
Forum: Development
Topic: ZX81-IDE Software Development Tool, IDE
Replies: 44
Views: 52070

Re: ZX81-IDE Software Development Tool, IDE

PS:

Tryed F8 with an old Windows XP computer and everything run fine! :)
(should I rob my daughter of her computer? ;))