Welcome, Guest. Please login or register.


Author Topic: Q&A (Read 56377 times)

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
Re: Q&A
« Reply #90 on: 2015.December.06. 13:01:21 »
OK, but i don't want to spoil a game.


Offline g0blinish

  • EP fan
  • *
  • Posts: 110
Re: Q&A
« Reply #91 on: 2015.December.06. 14:00:21 »
How to check if any key pressed?

for example, on ZX is
Code: [Select]
xor a
in a,($FE)

Offline geco

  • Moderator
  • EP addict
  • *
  • Posts: 7069
  • Country: hu
    • Támogató Támogató
Re: Q&A
« Reply #92 on: 2015.December.06. 14:11:05 »
How to check if any key pressed?

for example, on ZX is
Code: [Select]
xor a
in a,($FE)
You have to read all key rows, something like the following:
Code: [Select]
chkkey
   ld b,0ah
readkey
   ld a,b
   dec a
   out (0b5h),a
   in a,(0b5h)
   inc a
   ret nz          ;NZ if key pressed
   djnz readkey
   ret            ; Z if key not pressed

Offline geco

  • Moderator
  • EP addict
  • *
  • Posts: 7069
  • Country: hu
    • Támogató Támogató
Re: Q&A
« Reply #93 on: 2015.December.06. 14:18:35 »
if you want to check joystick also then:
Code: [Select]
chkkey
   ld b,0ah
readkey
   ld a,b
   dec a
   out (0b5h),a
   in a,(0b5h)
   ld c,a
   in a,(0b6h)
   or 0feh
   and c
   inc a
   ret nz          ;NZ if key pressed
   djnz readkey
   ret            ; Z if key not pressed

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
Re: Q&A
« Reply #94 on: 2015.December.06. 15:05:55 »
I made simple utility LPT helper. maybe one help.
type number with $ as hex, % as binary.

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: Q&A
« Reply #95 on: 2015.December.06. 17:49:41 »
if you want to check joystick also then:
Code: [Select]
chkkey
   ld b,0ah
readkey
   ld a,b
   dec a
   out (0b5h),a
   in a,(0b5h)
   ld c,a
   in a,(0b6h)
   or 0feh ;11111110b
   and c
   inc a
   ret nz          ;NZ if key pressed
   djnz readkey
   ret            ; Z if key not pressed

With new Entermice: to test the three fire buttons put "or 0f8h"("11111000b") instead of  "or 0feh"("11111110b")  on rows 0 and 5 of external joysticks(port 0b6h).

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
Re: Q&A
« Reply #96 on: 2015.December.13. 19:40:42 »
Does anybode tried to build LPT for Timex multicolor mode?

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14709
  • Country: hu
    • http://enterprise.iko.hu/
Re: Q&A
« Reply #97 on: 2015.December.13. 19:50:51 »
Does anybode tried to build LPT for Timex multicolor mode?
If I understood right then I think it is easy.
Every screen byte have the attribute byte at +2000h address?

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
Re: Q&A
« Reply #98 on: 2015.December.13. 21:05:09 »
yes,
$4000-$6000.

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14709
  • Country: hu
    • http://enterprise.iko.hu/
Re: Q&A
« Reply #99 on: 2015.December.13. 21:59:17 »
Can you upload some sample images? Then I will modify my Spectrum loader for this mode.

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
Re: Q&A
« Reply #100 on: 2015.December.14. 06:34:52 »
Can you upload some sample images? Then I will modify my Spectrum loader for this mode.

this is simple conversion

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
Re: Q&A
« Reply #101 on: 2015.December.14. 07:48:14 »
And one question: is possible to change LPT's parameter every frame?

Offline geco

  • Moderator
  • EP addict
  • *
  • Posts: 7069
  • Country: hu
    • Támogató Támogató
Re: Q&A
« Reply #102 on: 2015.December.14. 08:27:41 »
And one question: is possible to change LPT's parameter every frame?
Yes, any parameter can be changed, or if you need speed, then you can build more LPT's and change between them in every frame.

Offline IstvanV

  • EP addict
  • *
  • Posts: 4822
Re: Q&A
« Reply #103 on: 2015.December.14. 10:51:19 »
It is even possible (although not very useful) to change the current LPB every line (with the exception of the number of lines, LD2, and in VRES=1 mode, LD1), but not during a line because it is only read once at the beginning of the line. The border color and bias can be changed at any time.
« Last Edit: 2015.December.14. 11:48:08 by IstvanV »

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14709
  • Country: hu
    • http://enterprise.iko.hu/
Re: Q&A
« Reply #104 on: 2015.December.14. 16:47:42 »
this is simple conversion
It is right results, or something wrong? :oops:
[ Guests cannot view attachments ]