Welcome, Guest. Please login or register.

Login with username, password and session length


Author Topic: Tube 256byte (Read 341 times)

Offline geco

  • EP addict
  • *
  • Posts: 4179
  • Country: hu
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 45.0 Firefox 45.0
    • View Profile
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.
17725-0
« Last Edit: 2017.April.09. 18:10:50 by geco »

Offline SlashNet

  • EP fan
  • *
  • Posts: 237
  • Country: ua
  • Enterprise 128K | Cubietruck
  • OS:
  • Windows NT 6.3 Windows NT 6.3
  • Browser:
  • Vivaldi 1.8.770.54 Vivaldi 1.8.770.54
    • View Profile
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 »
Press ENTER to exit BASIC

Offline geco

  • EP addict
  • *
  • Posts: 4179
  • Country: hu
  • OS:
  • Linux / Sony Ericsson SK17i Linux / Sony Ericsson SK17i
  • Browser:
  • Safari 4.0 Safari 4.0
    • View Profile
Re: Tube 256byte
« Reply #2 on: 2017.April.09. 11:56:31 »

Offline geco

  • EP addict
  • *
  • Posts: 4179
  • Country: hu
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 45.0 Firefox 45.0
    • View Profile
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
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 52.0 Firefox 52.0
    • View Profile
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: 4179
  • Country: hu
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 45.0 Firefox 45.0
    • View Profile
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