Fontos klub információ
Important club information
Welcome, Guest. Please login or register.


Author Topic: Q&A (Read 23785 times)

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.86 Chrome 46.0.2490.86
    • View Profile
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
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.86 Chrome 46.0.2490.86
    • View Profile
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)

Online geco

  • Moderator
  • EP addict
  • *
  • Posts: 5522
  • Country: hu
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 38.0 Firefox 38.0
    • View Profile
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

Online geco

  • Moderator
  • EP addict
  • *
  • Posts: 5522
  • Country: hu
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 38.0 Firefox 38.0
    • View Profile
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
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.86 Chrome 46.0.2490.86
    • View Profile
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.

Online gflorez

  • EP addict
  • *
  • Posts: 2767
  • Country: es
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
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
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 47.0.2526.73 Chrome 47.0.2526.73
    • View Profile
Re: Q&A
« Reply #96 on: 2015.December.13. 19:40:42 »
Does anybode tried to build LPT for Timex multicolor mode?

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13623
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
    • 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
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 47.0.2526.73 Chrome 47.0.2526.73
    • View Profile
Re: Q&A
« Reply #98 on: 2015.December.13. 21:05:09 »
yes,
$4000-$6000.

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13623
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
    • 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
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 47.0.2526.73 Chrome 47.0.2526.73
    • View Profile
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
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 47.0.2526.73 Chrome 47.0.2526.73
    • View Profile
Re: Q&A
« Reply #101 on: 2015.December.14. 07:48:14 »
And one question: is possible to change LPT's parameter every frame?

Online geco

  • Moderator
  • EP addict
  • *
  • Posts: 5522
  • Country: hu
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 38.0 Firefox 38.0
    • View Profile
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: 4806
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 39.0 Firefox 39.0
    • View Profile
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

  • EP addict
  • *
  • Posts: 13623
  • Country: hu
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
    • 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:
14295-0