Author Topic: Axe Optimization Contest  (Read 6126 times)

0 Members and 2 Guests are viewing this topic.

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: Axe Optimization Contest
« Reply #15 on: October 13, 2011, 11:59:01 pm »
I knew Runer112 was going to win.

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Axe Optimization Contest
« Reply #16 on: October 14, 2011, 12:14:21 am »
I wonder if Runner's example could be expanded upon by using a lookup table because the if values are all consecutive. maybe, maybe not but that's all I got.

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 aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe Optimization Contest
« Reply #17 on: October 14, 2011, 05:50:08 am »
Win? :(
Also,  I hate reading optimized code like the axe examples. they should actually not be optimized.
I'm not a nerd but I pretend:

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe Optimization Contest
« Reply #18 on: October 14, 2011, 09:00:16 am »
Code: [Select]
.CLIPPER
40→X→Y
48→S
32→T
Repeat getKey(15)
X+getKey(3)-(getKey(2))→X→N
Y+getKey(1)-(getKey(4))→Y→O
If N>>95
95→N
(95-S)//(N-S)*(O-T)→O
O+T→O
End
If O>>63
63→O
63-T//(O-T)*(N-S)→N
N+48→N
End
If N<<0
-1→N
~S//(N-S)*(O-T)+T→O
.the squiggly ~ is the negative sign
End
If O<<0
-1→O
~T//(O-T)*(N-S)+S→N
End
Line(S,T,N,O)
DispGraph
ClrDraw
Pause 20
End
dispgraphclrdraw is said to be very huge.
I'm not a nerd but I pretend:

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: Axe Optimization Contest
« Reply #19 on: October 18, 2011, 07:36:51 pm »
It's smaller than DispGraph and ClrDraw called separately as long as they're not used elsewhere already IIRC.
« Last Edit: October 18, 2011, 07:37:20 pm by Deep Thought »