Author Topic: Axe Little contest !  (Read 12960 times)

0 Members and 1 Guest are viewing this topic.

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: Axe Little contest !
« Reply #15 on: July 07, 2014, 02:40:59 pm »
Watch out guys, I found this topic. :P
Lol, I was wondering how long you would let us brag about our programs before appearing :P

Wait, what if, instead of the ASM() command we put the data as hex and jump to that memory address :P
Yeah, but how do you jump to the right memory address ?
jup, goto address or soemthing, or something like DATA(\x18,PTR) (JR)

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

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Little contest !
« Reply #16 on: July 07, 2014, 02:42:16 pm »
Well jr doesn't exist in Axe. And Goto doesn't allow relative jumps (or I missed something all this time O.O). So you can't do your trick without using Asm(), which defeats its purpose :P
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

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: Axe Little contest !
« Reply #17 on: July 07, 2014, 02:43:20 pm »
But DATA() puts the bytes just like that in memory, right? and 18 followed by the pointer is jr pointer. Ok, actually you'd need to do like jr 1, because relativness

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

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Axe Little contest !
« Reply #18 on: July 07, 2014, 02:48:48 pm »
Data puts the data after the ret so it won't work. However, go ahead and read the labels and subroutines section in the docs. :P

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Axe Little contest !
« Reply #19 on: July 07, 2014, 03:07:24 pm »
You can indeed jump to/call arbitrary addresses in native Axe. But I'd propose that doing anything that results in running custom assembly code is against the sprit of the competition and shouldn't be allowed.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Axe Little contest !
« Reply #20 on: July 07, 2014, 03:08:54 pm »
I got 408 :(
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Little contest !
« Reply #21 on: July 07, 2014, 03:11:44 pm »
You can indeed jump to/call arbitrary addresses in native Axe. But I'd propose that doing anything that results in running custom assembly code is against the sprit of the competition and shouldn't be allowed.
Yeah, we figured out we could make
[the hex code we want to execute]→°Cheat
Goto (°Cheat)

But it's true that this is not the goal of the contest :P
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: Axe Little contest !
« Reply #22 on: July 08, 2014, 03:36:11 am »
So I optimized the whole thing further and I am at 262 bytes. It is like so fast that to test the correctness of the display I have to pause it  O.O

However, I don't think I go any further this time, I mean the Dispgraph command is almsot 30% of is weight ><
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html

Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: Axe Little contest !
« Reply #23 on: July 08, 2014, 05:33:33 am »
292 tsss  :banghead: :banghead:
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Little contest !
« Reply #24 on: July 08, 2014, 06:01:53 am »
Still better than my poor 305 296...
edit I have 282 with some cheating :P
No Asm involved, but some unclean code :P
« Last Edit: July 08, 2014, 06:50:24 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: Axe Little contest !
« Reply #25 on: July 08, 2014, 08:42:42 am »
Soooooo... I finally found other morar optimization.
I am at the ridiculous size of 253 bytes and without unclean code  :P

Screen :



I have no doubt that Runer will beat this though ><

EDIT : I am now at 248 bytes :p
« Last Edit: July 09, 2014, 05:44:45 am by TheMachine02 »
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Little contest !
« Reply #26 on: July 10, 2014, 05:10:41 am »
Aargh ! I have 271 265 ! :P
But yeah, superfast too, as is yours :P forget about that, Wabbitemu was set as 400% :trollface:
« Last Edit: July 10, 2014, 05:43:29 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: Axe Little contest !
« Reply #27 on: July 10, 2014, 06:28:04 am »
Actually, I think that the speed and the size come from the algorithm I use, cause I am no very good for size optimizing  :P
I tried more optimization yesterday, but none of them work, so yeah, I think I am stuck at 248 bytes...
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html