Author Topic: Prizm Minesweeper  (Read 14464 times)

0 Members and 1 Guest are viewing this topic.

Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
Re: Prizm Minesweeper
« Reply #15 on: April 17, 2011, 06:50:39 pm »
Here are some actual screen shots:
Playing:

Lost:
Shaun

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Prizm Minesweeper
« Reply #16 on: April 17, 2011, 06:51:33 pm »
Did you use the Screen Receiver to generate those?
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
Re: Prizm Minesweeper
« Reply #17 on: April 17, 2011, 06:52:56 pm »
Yes I did.
Shaun

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: Prizm Minesweeper
« Reply #18 on: April 17, 2011, 08:29:46 pm »
How? O.O

The last time I tried taking screenshots from the screen receiver, it only let me capture while the calc was not busy or was in pause mode. When a while loop ran, for example, it wouldn't capture. :(

Also the emulator won't let us send files. X.x

Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
Re: Prizm Minesweeper
« Reply #19 on: April 17, 2011, 08:30:39 pm »
When using the GetKey() function, it allows that interrupt through, and that's the function I use for keys.
Shaun

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Prizm Minesweeper
« Reply #20 on: April 17, 2011, 08:34:20 pm »
Merth, it's not the Getkey() function. The USB connection triggers interrupts that I believe occur whenever the cable is plugged it as long as the interrupt table is intact.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

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: Prizm Minesweeper
« Reply #21 on: April 17, 2011, 08:36:49 pm »
Weird, so I assume in ASM/C it's possible, but not in BASIC?

Offline merthsoft

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 241
  • Rating: +63/-1
    • View Profile
Re: Prizm Minesweeper
« Reply #22 on: April 17, 2011, 08:38:41 pm »
Merth, it's not the Getkey() function. The USB connection triggers interrupts that I believe occur whenever the cable is plugged it as long as the interrupt table is intact.
It only works in GetKey(), so there's something in there. The non-blocking calls don't handle MENU or Screen Receiver. Also, I accidentally down voted your post when I was trying to hit quote. So then I upvoted it.
Shaun

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: Prizm Minesweeper
« Reply #23 on: April 17, 2011, 08:40:12 pm »
Hmm.. I wonder... does this mean that in a BASIC program, if I had a getkey command running in every loop, it would capture? I will have to try this when I have time.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Prizm Minesweeper
« Reply #24 on: April 18, 2011, 06:13:18 am »
Hmm.. I wonder... does this mean that in a BASIC program, if I had a getkey command running in every loop, it would capture? I will have to try this when I have time.

Do you mean like:

Code: [Select]
While (TRUE)
If GetKey
...
End

Would it capture that?

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: Prizm Minesweeper
« Reply #25 on: April 18, 2011, 06:31:43 am »
Hmm.. I wonder... does this mean that in a BASIC program, if I had a getkey command running in every loop, it would capture? I will have to try this when I have time.

Do you mean like:

Code: [Select]
While (TRUE)
If GetKey
...
End

Would it capture that?
I don't think that would be captureable... The Casio-BASIC GetKey is non-blocking, if I recall correctly.

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Prizm Minesweeper
« Reply #26 on: April 18, 2011, 02:11:23 pm »
The screen receiver seems to work in BASIC progs only when there is little action. For example when the calc is is a repeat getkey loop then it will send an image, but if there are many drawing operations going on then the screen receiver will wait till the drawing calms down. I'm not sure if it will work when there are math only operations going on.

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

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: Prizm Minesweeper
« Reply #27 on: May 12, 2011, 05:41:21 pm »
Hmm I see now. I assume if there are many draw functions you need to spam like 10 getkey commands in your loop code, right?

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Prizm Minesweeper
« Reply #28 on: May 13, 2011, 02:18:08 am »
Actually I recently found out a little more about how the screen receiver works. It appears to use the dmac to do quick transfers of the vram to the usb. The problem is that the vram to DD (screen draw) also uses the dmac so screen reciever must wait till it is free. What I've seen is if you do a for loop to 100,000 with no drawing with screen receiver running there is little slowdown to your code, but if it is graphic intensive there still is little slowdown, but screen receiver won't do an transfers. Also if screen receiver is already using the dmac then directdraw must wait till it is done. The full dmac transfer takes about 1/22 of a second, but you can have your own code running during this time.

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

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: Prizm Minesweeper
« Reply #29 on: May 23, 2011, 12:08:55 am »
Hmm strange. I think we definitively need a good third-party emulator for screenshots, because currently it's annoying to capture anything X.x