Search found 1946 matches

by XavSnap
Thu Feb 08, 2024 9:12 pm
Forum: ZX BASIC
Topic: Eight ways to drive a car [BASIC]
Replies: 2
Views: 1823

Eight ways to drive a car [BASIC]

How to print a car, and scroll it to the right side... Cap0000.jpg PRINT AT: 10 FOR A=0 TO 22 20 PRINT AT 10,A;" µµ««´±";AT 11,A;" «««««««®";AT 12,A;" ¾‹OŒ´´‹OŒ" 30 NEXT A TAB : 10 FOR A=0 TO 22 20 PRINT AT 10,A;" µµ««´±";TAB A;" «««««««®";TAB A;" ¾‹OŒ´´‹OŒ"; 30 NEXT A LET: 1 DIM T$(3,64) 2 LET T$(1...
by XavSnap
Thu Feb 08, 2024 9:00 pm
Forum: ZX BASIC
Topic: Tricks in BASIC
Replies: 57
Views: 124705

Re: Tricks in BASIC

Booleans in BASIC:

Code: Select all

  5 LET FALSE=0
  7 LET TRUE=1
  9 LET B=0
  10 LET A=TRUE
  20 IF A>0 THEN LET B=B+1
  30 LET B=B+1*(A>0)
  35 LET B=B+(A>0)
  40 LET B=B+NOT NOT A
  45 PRINT "A IS ";("TRUE") AND A;("FALSE") AND NOT A,,,,
  50 PRINT "BOOL SUM=";B
  
by XavSnap
Tue Jan 02, 2024 1:22 pm
Forum: ZX BASIC
Topic: Put a Graphic bloc on a screen...[ASM]
Replies: 1
Views: 2575

Re: Put a Graphic bloc on a screen...[ASM]

Another way to display a bloc...
Download the Greg's game here
by XavSnap
Sun Dec 31, 2023 10:07 am
Forum: ZX BASIC
Topic: Put a Graphic bloc on a screen...[ASM]
Replies: 1
Views: 2575

Put a Graphic bloc on a screen...[ASM]

Hi, In BASIC, you had to place the bloc at the right raw for each line: 10 FOR A=0 TO 17 20 PRINT AT A,10;" ";\ AT A+1,10;"(I)";\ AT A+2,10;"¬¿ª";\ AT A+3,10;"ºL°";\ AT A+4,10;"·®¶" 30 NEXT A 50 FOR A=17 TO 0 STEP -1 60 PRINT AT A,10;"²¸¹";\ AT A+1,10;"º7°";\ AT A+2,10;"¯¾¼";\ AT A+3,10;"(I)";\ AT A...
by XavSnap
Mon Dec 11, 2023 9:36 pm
Forum: Hardware
Topic: ZX81KBD+ USB/PS2 y programmable Josytick
Replies: 3
Views: 13356

Re: ZX81KBD+ USB/PS2 y programmable Josytick

Good job Wilco2009,
Thanks.
by XavSnap
Sat Dec 09, 2023 6:46 am
Forum: Hardware
Topic: 8 Analog ouput card [AN7225]
Replies: 7
Views: 12712

Re: 8 Analog ouput card [AN7225]

Hi Mark,
Yes, it seem better now

Image


Image

8ana_1.JPG
8ana_2.JPG
:oops:

Kicad project (wip temporary prototype)
http://zx81.ordi5.free.fr/brico/Carte_8Sana/
by XavSnap
Fri Dec 08, 2023 8:12 am
Forum: Hardware
Topic: 8 Analog ouput card [AN7225]
Replies: 7
Views: 12712

Re: 8 Analog ouput card [AN7225]

Image
by XavSnap
Thu Dec 07, 2023 8:43 pm
Forum: Hardware
Topic: 8 Analog ouput card [AN7225]
Replies: 7
Views: 12712

Re: 8 Analog ouput card [AN7225]

Wiring diagram updated:

Vss> GND
Vref on a terminal
\LDAC> GND or /WR (jumpers)
\ROMCS>high

Picture in the next message >>>
by XavSnap
Thu Dec 07, 2023 7:27 pm
Forum: Hardware
Topic: 8 Analog ouput card [AN7225]
Replies: 7
Views: 12712

Re: 8 Analog ouput card [AN7225]

Thanks Paul & Mark, @Paul: Yes,better to force /ROMCS to deactivate the RAM/ROM process. (ROMCS:high & RAMCS:high to get an ambiguous/undetermined stat) The MEMOTCH HRG also use the 0-1fff RAM location. @Mark: Thank, i had to primary set the DAC, and feed the DATAS in the buffer. I had to use it wit...
by XavSnap
Wed Dec 06, 2023 9:13 am
Forum: Hardware
Topic: 8 Analog ouput card [AN7225]
Replies: 7
Views: 12712

8 Analog ouput card [AN7225]

Hi, I plan to build a ZX81 card around the AN7225 chipset. But i cant figure out the "\LDAC" process ! Can you help me, please. an7225.JPG AD7225 Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/AD7225.pdf My wiring diagram (POKE 0-7,value to set the output voltage= POK...