Author Topic: Routines  (Read 313316 times)

0 Members and 2 Guests are viewing this topic.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Routines
« Reply #435 on: October 20, 2010, 01:42:36 pm »
I actually don't think that the built in ones are so bad that it wont work, it just might be a little more distorted.  But given that the screen is so small i dont know how noticeable it is

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: Routines
« Reply #436 on: October 20, 2010, 01:47:39 pm »
Yeah that's what I was wondering, personally.

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Routines
« Reply #437 on: October 27, 2010, 04:21:53 pm »
Here is an Asm routine that will return the state of the ON button, just like getKey() does for other keys -- 1 if pressed, 0 if not pressed.

Asm(DB041F1F1F1FED6223)

Edit:
Here is the assembly code, in case anyone (hint hint Quigibo) might want it :P
Code: [Select]
in a,(4)
rra
rra
rra
rra
sbc hl,hl
inc hl
« Last Edit: October 27, 2010, 05:55:29 pm by calc84maniac »
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

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: Routines
« Reply #438 on: October 27, 2010, 10:55:21 pm »
Nice, since that button works differently than others, this might be useful. Will this work regardless of if interrupts are disabled or something, though?

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Routines
« Reply #439 on: October 28, 2010, 05:59:12 pm »
Nice, since that button works differently than others, this might be useful. Will this work regardless of if interrupts are disabled or something, though?
It must be in LnReg mode, I believe. :)

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: Routines
« Reply #440 on: October 28, 2010, 06:01:53 pm »
You mean LnReg might have to be called before using Calc84maniac's routine?

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Routines
« Reply #441 on: October 28, 2010, 06:05:32 pm »
I think so.  I may be wrong, though. :-\

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Routines
« Reply #442 on: October 29, 2010, 11:27:19 pm »
You don't need to be in any specific interrupt mode, actually. ;D
You can be in any mode, interrupts enabled or disabled, and it will work.
What the code does is read a bit the corresponds to whether the [ON] key is being pressed. Interrupts are not involved ;)
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

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: Routines
« Reply #443 on: October 29, 2010, 11:58:14 pm »
Ah ok thanks for the confirmation :)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Routines
« Reply #444 on: November 02, 2010, 08:31:34 pm »
I was fiddling around in axe today and i randomly made a random realistic map generator.  It generates a map as seen from space in greyscale and depending on how much terrain you want it to have.  It can also be easily modified to generate terrain from basic shapes already drawn on the screen.


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: Routines
« Reply #445 on: November 02, 2010, 08:51:20 pm »
wow that's great! That makes me wonder if there could be a random dungeon generator or something in the future...

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Routines
« Reply #446 on: November 03, 2010, 06:40:16 pm »
Looks great! Really nice code too :D




Offline MRide

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 711
  • Rating: +14/-0
  • You can't see this.
    • View Profile
Re: Routines
« Reply #447 on: November 03, 2010, 06:42:50 pm »
So, the number is how much land you want? Looks cool!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Routines
« Reply #448 on: November 03, 2010, 06:45:31 pm »
Yeah, and if I'm not mistaken, it's out of 16.




Offline MRide

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 711
  • Rating: +14/-0
  • You can't see this.
    • View Profile
Re: Routines
« Reply #449 on: November 03, 2010, 06:48:21 pm »
'K Thanks.  That looks like it might be useful, for stuff like dungeons, like DJ said.
Also, Deep, your dragon pic needs updating.