Welcome, Guest. Please login or register.


Author Topic: Tube 256byte (Read 3697 times)

Offline geco

  • EP addict
  • *
  • Posts: 7082
  • Country: hu
    • Támogató Támogató
Tube 256byte
« on: 2017.April.08. 21:28:22 »
A small 256 byte Tube demo, I wanted to add vertical movement also for the tube, but i did not have enough space, better programmers I am sure could add it also. It does not run on EP64.
[ Guests cannot view attachments ]
« Last Edit: 2017.April.09. 18:10:50 by geco »

Offline SlashNet

  • EP addict
  • *
  • Posts: 1193
  • Country: ua
  • Enterprise 128K | Cubietruck
    • My old site about Enterprise
Re: Tube 256byte
« Reply #1 on: 2017.April.09. 11:27:38 »
https://youtu.be/DRzmDa6ppik

Maybe, better create animated GIF? :)



New version: https://youtu.be/TH3xfamV-Ws
« Last Edit: 2017.April.10. 19:14:13 by SlashNet »

Offline geco

  • EP addict
  • *
  • Posts: 7082
  • Country: hu
    • Támogató Támogató
Re: Tube 256byte
« Reply #2 on: 2017.April.09. 11:56:31 »

Offline geco

  • EP addict
  • *
  • Posts: 7082
  • Country: hu
    • Támogató Támogató
Re: Tube 256byte
« Reply #3 on: 2017.April.09. 18:08:20 »
Vertical movement added, one mistake corrected, the link below contains the updated version.

Offline Sdw

  • User
  • *
  • Posts: 50
Re: Tube 256byte
« Reply #4 on: 2017.April.25. 23:26:32 »
Nice sizecoding effect!

I looked a bit in this source (and your other 256 byte intro) and found some really neat stuff for setting up the LPT!
I guess 0xBFF4 points to an address where the system LPT can be found, and then 0x1c0 bytes into that you get the whole, X lines of lower border, sync stuff, Y lines of upper border, right?
I think I'll need to steal that for some stuff I am working on! ;)


Offline geco

  • EP addict
  • *
  • Posts: 7082
  • Country: hu
    • Támogató Támogató
Re: Tube 256byte
« Reply #5 on: 2017.April.26. 09:14:54 »
Nice sizecoding effect!

I looked a bit in this source (and your other 256 byte intro) and found some really neat stuff for setting up the LPT!
I guess 0xBFF4 points to an address where the system LPT can be found, and then 0x1c0 bytes into that you get the whole, X lines of lower border, sync stuff, Y lines of upper border, right?
I think I'll need to steal that for some stuff I am working on! ;)
Please steal it ;) Yes, 0bff4h is the system LPT pointer, and added by 01c0h is the place of VSYNC part of LPT.
And yes :) lower border:
Code: [Select]
        ld      hl,(0bff4h)
        ld      bc,28*10h
        add     hl,bc
        ld      a,(hl)
        sub     4fh
        ld      (hl),a
Upper border:
Code: [Select]
        ld      a,0deh-4fh
        ld      (lptaddr+94*10h+50h),a