Search found 189 matches

by olofsen
Thu Sep 04, 2014 11:08 pm
Forum: Emulators
Topic: JSZeddy
Replies: 47
Views: 31398

JSZeddy

Based on JSSpeccy, with so far only FAST mode:

http://rullf2.xs4all.nl/jszeddy/jszeddy.html

[Using a <canvas> and tested using a recent Firefox under Linux.]
by olofsen
Sat Aug 30, 2014 1:19 pm
Forum: Hardware
Topic: A RAM replacement for my ZX81?
Replies: 20
Views: 8126

Re: A RAM replacement for my ZX81?

Would it be possible to use the tv modulator - via a resistor - as a logic probe? If everything is well, all signals are in sync with the image, but perhaps even when the computer does not boot, some signals may be visible?
by olofsen
Wed Aug 27, 2014 7:42 pm
Forum: Development
Topic: Waiting some time!
Replies: 21
Views: 8597

Re: Waiting some time!

Perhaps using system variable FRAMES directly?
by olofsen
Fri Aug 22, 2014 8:12 am
Forum: Development
Topic: INPUT A$ in assembly
Replies: 10
Views: 3881

Re: INPUT A$ in assembly

That would take just a few extra bytes!

Code: Select all

10 dim a$(4)
20 input a$
30 print a$,len a$
40 goto 20
by olofsen
Thu Aug 21, 2014 6:00 pm
Forum: Development
Topic: INPUT A$ in assembly
Replies: 10
Views: 3881

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. 100 print usr 16514 110 input a$ 120 print a$ 130 goto 100 The following code gets the A$ at line 110 from NXTLIN and some increments and stores this at CH-ADD. It th...
by olofsen
Wed Aug 20, 2014 10:38 pm
Forum: Development
Topic: INPUT A$ in assembly
Replies: 10
Views: 3881

Re: INPUT A$ in assembly

Returning from input at 0x0ee9 seems to be tricky indeed, unfortunately :geek:
by olofsen
Wed Aug 20, 2014 6:35 pm
Forum: Development
Topic: INPUT A$ in assembly
Replies: 10
Views: 3881

Re: INPUT A$ in assembly

You're right! And this seems to work too and is two bytes shorter. It just interprets "INPUT A$".

Code: Select all

	org 0x4082
	ld hl,basic
	ld (0x4016),hl
	jp 0x0cde
basic:
	defb 238
	defb 38
	defb 13
by olofsen
Wed Aug 20, 2014 8:53 am
Forum: Development
Topic: INPUT A$ in assembly
Replies: 10
Views: 3881

Re: INPUT A$ in assembly

In the code in the attachment system variable "ch-add" is set to point to the text "A$" at the end of the line, and then "look-vars" and "input" are called.
by olofsen
Fri Jul 25, 2014 10:32 pm
Forum: GAMES
Topic: Maze Solver
Replies: 2
Views: 2461

Re: Maze Solver

Very interesting - thanks!
by olofsen
Tue Jul 22, 2014 7:29 pm
Forum: Development
Topic: ZX Floating point to Decimal code in BASIC
Replies: 12
Views: 12518

Re: ZX Floating point to Decimal code in BASIC

May be we can compare intermediate results: for num=12345, intnum=3236167680, tmpint1=0 and tmpint2=49380 or 0xc0e4 but it should be 0x40e4?