Welcome, Guest. Please login or register.


Author Topic: Snake 256byte (Read 9168 times)

Offline geco

  • EP addict
  • *
  • Posts: 7232
  • Country: hu
    • Támogató Támogató
Re: Snake 256byte
« Reply #15 on: 2017.April.24. 13:18:29 »
but here is some issues with color.
Probably because character codes from 0-127 are displayed of palette color 0,1, and from 128-255 are displayed with 2,3

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14779
  • Country: hu
    • http://enterprise.iko.hu/
Re: Snake 256byte
« Reply #16 on: 2017.April.24. 13:25:36 »
And can be a problem: EXOS character codes 128-159 are converted to 0-31 in video memory. If you directly copy text which including these character will be displayed with wrong color pair.

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
Re: Snake 256byte
« Reply #17 on: 2017.April.24. 13:26:48 »
Now I see only one line of characters.

should I use VRES?

Offline geco

  • EP addict
  • *
  • Posts: 7232
  • Country: hu
    • Támogató Támogató
Re: Snake 256byte
« Reply #18 on: 2017.April.24. 13:46:49 »
Now I see only one line of characters.

should I use VRES?
No, you used the charmap address of STATUS line, you should use the next LPB (LPT line) (if it has a right address, or you can set up your own character map address), and you should set the same charmap address of the following LPB's in this case you can see the same result in each line.

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
Re: Snake 256byte
« Reply #19 on: 2017.April.24. 14:19:11 »
same picture:
Code: [Select]
ld      hl,($bff4)


ld de,16+4
add hl,de
;

ld e,(hl)
inc hl
ld d,(hl)

;
ld b,0

ld a,$FF
out ($B3),a
mm:
ld a,b
ld (de),a
inc de
inc b
jr nz,mm

Offline geco

  • EP addict
  • *
  • Posts: 7232
  • Country: hu
    • Támogató Támogató
Re: Snake 256byte
« Reply #20 on: 2017.April.24. 14:35:14 »
same picture:
Not the same :) now your characters were displayed in the 2nd line by green colour, if you set next LPT rows with the same charmap address, then each row will show the same characters, if your plan is to display all defined characters then probably the charmap address of 3rd LPT row is not continuation of 2nd LPT row, you can setup your addresses into LPT, or check address of next LPT line if the 1st row is flled with characters, and continue printing to that address.