Author Topic: xLIB 84C Edition  (Read 51023 times)

0 Members and 3 Guests are viewing this topic.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: xLIB 84C Edition
« Reply #180 on: September 13, 2013, 12:36:45 pm »
For the fillrect routine, do you just define the window and write the same two bytes over and over? I imagine you would make the A register the height, then DE contains the values to write, HL could be the width and use the increment mode going down:
Code: [Select]
     ld c,11h
     dec hl
     inc h
     inc l
fillloop:
     ld b,a
fillloopinner:
     out (c),e
     out (c),d
     djnz fillloopinner
     dec l
     jr nz,fillloop
     dec h
     jr nz,fillloop
     ret

I am not familiar with the extreme tricks yet :/

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: xLIB 84C Edition
« Reply #181 on: September 16, 2013, 05:07:17 pm »
A pxl-on command would definitively be nice, for when we just want to change the color of 1 pixel. :P

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: xLIB 84C Edition
« Reply #182 on: September 16, 2013, 07:19:31 pm »
Oh yeah, there is setPixel and getPixel as well. There are 2 versions of these routines, ones that set one of the standard 256 colours, and ones that set 16-bit colours.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: xLIB 84C Edition
« Reply #183 on: September 17, 2013, 02:03:12 am »
Ok thanks. Glad to hear :)

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: xLIB 84C Edition
« Reply #184 on: September 17, 2013, 02:31:47 am »
So there are:

getPixelA - 16-bit colour
getPixelB - standard palette 256 colour
setPixelA - 16-bit colour
setPixelB - standard palette 256 colour
drawLine - standard palette 256 colour
invertLine - inverted line on LCD
drawRectangle - standard palette 256 colour
invertRectangle - inverted rectangle on LCD
fillRectangle - standard palette 256 colour
fillInvertRectangle - inverted solid rectangle on LCD
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: xLIB 84C Edition
« Reply #185 on: September 17, 2013, 04:05:51 am »
Seems cool. How will the 16-bit mode work? Also do you still plan to make the full screen inverting use LCD routines?

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: xLIB 84C Edition
« Reply #186 on: September 17, 2013, 07:55:39 am »
Sounding awesome!
I just can't wait to see all the epic games arise using xlib ::)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: xLIB 84C Edition
« Reply #187 on: September 17, 2013, 05:31:59 pm »
Well 16-bit just takes 2 colour arguments instead of 1 and will enable you to draw from the full spectrum of colours available. Im not really sure how useful it will be since its only pixels.

DJ: Yes the fullscreen invert is available as well.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: xLIB 84C Edition
« Reply #188 on: September 17, 2013, 06:22:20 pm »
Cool to hear. :D By the way do you plan to release xLIB before Doors CSE merges with it? It would be nice if maybe we could start developing games before the merge, in case, for example, Kerm got too busy during school year and that it took one more year before the merge happens.

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: xLIB 84C Edition
« Reply #189 on: September 17, 2013, 06:25:42 pm »
Yes i plan on writing 1 more function before releasing it for testing and stuff.

The code will be available to Kerm so this time the same codebase will be present in xLIB and DCS, which should take care of any compatibility issues.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: xLIB 84C Edition
« Reply #190 on: September 17, 2013, 06:27:35 pm »
Ok that's good to hear :) I was worried that the recent announcement about the merge would delay xLIB 84C release and cause interest to wane with the time (like the HP Prime late release). D:

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: xLIB 84C Edition
« Reply #191 on: September 18, 2013, 09:28:21 am »
yay, release is soon!
* Sorunome gets ready for looking at epic game dev of other people, sadly i don't have a 84C :/
« Last Edit: September 18, 2013, 09:28:33 am by Sorunome »

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: xLIB 84C Edition
« Reply #192 on: September 18, 2013, 09:36:25 am »
Yes i plan on writing 1 more function before releasing it for testing and stuff.

The code will be available to Kerm so this time the same codebase will be present in xLIB and DCS, which should take care of any compatibility issues.

@tr1p1ea
That sounds great! :D

@Sorunome:
* Art_of_camelot gives Sorunome (1) 84C*
84C in this case means a TI-84 Cookie. Item is virtual and non transferable some limitations may apply...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: xLIB 84C Edition
« Reply #193 on: October 01, 2013, 12:34:02 am »
I didn't have much time to test the beta, sadly, because it was released in the middle of my busy weekend (where I work for the most part) and I was exhausted. I got some days off lately, but now I am pretty sick (huge cold), with my usual stiff neck issues, meaning I can't really sit down for an hour coding nor concentrating.

However, I did spot one bug so far when testing ADEMO.8xp: When you exit, 320x240 mode isn't setup properly. Also, I noticed that even if I add an i:Asm(prgmLCDTOOL after the program, even that standalone program by Calc84maniac won't change the calc back to 320x240 mode. I have to run it manually to do so.

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: xLIB 84C Edition
« Reply #194 on: October 01, 2013, 08:41:19 am »
Can you check the last command in the demo, it was corrupted with a ?, change to a 1 and it should work.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."