Author Topic: Bad Apple SE  (Read 32704 times)

0 Members and 1 Guest are viewing this topic.

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Bad Apple SE
« on: December 17, 2013, 11:20:28 pm »
If you aren't familiar with the song/video, see here.

Seeing that people have made demos for the NES and Gameboy Color, I thought I'd try my hand at making one for a calculator. So far, I've got an RLE encoder written in Python, and a z80 ASM routine to decompress and display the video. It's running in 6Mhz mode right now, with video stored at 30fps but displayed at an unregulated framerate (how do I regulate it?), and I hope to add sound with 15Mhz.

The reason the GIF cuts off halfway through the video is because spasm hangs during the first pass when I try to add more than 39 pages to the application. (I need 76 for the whole video) If anyone knows a workaround, please do tell me.
« Last Edit: December 17, 2013, 11:21:52 pm by fb39ca4 »

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: Bad Apple SE
« Reply #1 on: December 17, 2013, 11:49:04 pm »
Wow that is really nice and smooth! It's incredible how much you could store with compression :)

Also at first, I thought this topic was about a game that makes fun of the Apple company :P

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: Bad Apple SE
« Reply #2 on: December 18, 2013, 12:01:45 am »
i know it's because the original is monochrome, but this is the best looking thing i've ever seen on an 83/4 screen =D

Offline Lunar Fire

  • LV3 Member (Next: 100)
  • ***
  • Posts: 66
  • Rating: +7/-1
  • I'll be watching you from the shadows
    • View Profile
    • My Tumblr
Re: Bad Apple SE
« Reply #3 on: December 18, 2013, 12:28:23 am »
fb39ca4: Your video is pretty impressive so far.

For your unregulated video rate problem, I think there are crystal interrupts on some models of TI. I can't remember which calculator had which interrupts available, but this would be your most reliable time base. Then you can add counters to divide the frequency and find out exactly when to render the frame for the selected frame rate.

I haven't done anything with TI calculators for a while, tell me if I'm wrong.
Your drill is the drill that will pierce the heavens!

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: Bad Apple SE
« Reply #4 on: December 18, 2013, 12:30:36 am »
yeah, there are crystal timers on all the 15MHZ models (83+SE and the 84+ variants). if it's only at 6MHZ right now, there should be plenty of extra cycles to handle timing things, too =)

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Bad Apple SE
« Reply #5 on: December 18, 2013, 12:38:18 am »
That's pretty awesome :D Been a while I wanted to see Bad Apple on a calc.

For the workaround, you can always try the algorithm they used to fit the video on a NES cart.
« Last Edit: December 18, 2013, 12:39:42 am by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Bad Apple SE
« Reply #6 on: December 18, 2013, 03:53:55 am »
Didn't someone make this already?
If you like my work: why not give me an internet?








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: Bad Apple SE
« Reply #7 on: December 18, 2013, 03:57:13 am »
Didn't someone make this already?

Download link or it didn't happen.

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: Bad Apple SE
« Reply #8 on: December 18, 2013, 07:41:56 am »
Wow, that is looking awesome o.o

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: Bad Apple SE
« Reply #9 on: December 18, 2013, 09:06:53 am »
@Keoni: That is actually the link that fb39ca4 posted in IRC yesterday. :P I think that is what inspired this project (as that one is suspected of being fake). I thought to myself "That would actually probably work pretty well on calc, and I assumed he thought the same. :D

@fb39ca4: When I saw your topic about flash pages, I had a suspicion that you might be attempting this. This is looking fantastic so far. :D

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: Bad Apple SE
« Reply #10 on: December 18, 2013, 09:13:11 am »
Didn't someone make this already?

Download link or it didn't happen.
If this is the same video I'm thinking of, then I agree. If it was real, we would have heard about it on one of the calculator forums.

@Keoni: That is actually the link that fb39ca4 posted in IRC yesterday. :P I think that is what inspired this project (as that one is suspected of being fake). I thought to myself "That would actually probably work pretty well on calc, and I assumed he thought the same. :D

@fb39ca4: When I saw your topic about flash pages, I had a suspicion that you might be attempting this. This is looking fantastic so far. :D
Actually, I first saw this video and thought it would be neat if it actually was a thing on a Gameboy. Then I discovered it had already been done, so I decided to do it on a calculator. I actually didn't see the allegedly fake video until after I had started on this. But even if that one is actually legit, it doesn't have any sound.
« Last Edit: December 18, 2013, 01:10:57 pm by fb39ca4 »

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: Bad Apple SE
« Reply #11 on: December 18, 2013, 10:14:18 pm »
That said, there are certain people who don't like forums and will only upload their programs elsewhere like ticalc or post videos of them.

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Bad Apple SE
« Reply #12 on: December 20, 2013, 12:20:46 am »
The reason the GIF cuts off halfway through the video is because spasm hangs during the first pass when I try to add more than 39 pages to the application. (I need 76 for the whole video) If anyone knows a workaround, please do tell me.
I've run into one particular crashing problem with SPASM lately, which was trying to #import a filename that doesn't exist (due to a typo). You're sure that's not the problem here, right?
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: Bad Apple SE
« Reply #13 on: December 20, 2013, 12:29:08 pm »
I've got .bin files for all the pages padded with zeroes to 16384 bytes. To use them with spasm, is this what I should do for each page x?
Code: [Select]
defpage(x)
#import "bin/pagex.asm"

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Bad Apple SE
« Reply #14 on: December 20, 2013, 12:38:07 pm »
I've got .bin files for all the pages padded with zeroes to 16384 bytes. To use them with spasm, is this what I should do for each page x?
Code: [Select]
defpage(x)
#import "bin/pagex.asm"
That sounds right, though I personally rarely mess with the app.inc macros past defpage(0,"Name").
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman