Author Topic: TI-Concours, a french programming contest for 68k/z80  (Read 76203 times)

0 Members and 1 Guest are viewing this topic.

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: TI-Concours, a french programming contest for 68k/z80
« Reply #225 on: March 28, 2012, 04:33:22 pm »
What Eiyeron discovered isn't so much of an Axe bug as it is a lack of a feature that Axe really should have. The issue is that, in the process of deleting or recreating an OS variable, other variables in RAM may be shifted. A common instance of this would occur if your program creates a variable, and later deletes or recreates an OS variable that existed before your program started, then the pointer to the variable you originally created would be invalid.

This is not an issue that an Axe user should need to debug/solve. My identification of the issue required a knowledge of assembly and how the OS structures RAM, and my formulation of the proper solution required a knowledge of an OS feature only exposed to assembly programmers. The behavior Eiyeron saw would most certainly appear to be a bug without this knowledge, thus I do not believe that he should be penalized in any way for asking for assistance with a problem that is not his fault.



Here is my suggested solution for anyone having this issue. For up to two OS variables that you keep a pointer to for the duration of the program, the OS can automatically update the pointer if it moves. To take advantage of this feature, I would suggest putting the following one or two variable definitions in your program:

Code: [Select]
ᴇ84EB→°V1
ᴇ84ED→°V2

The names can be whatever you like, they don't have to be V1 and V2. And if you only need to keep track of one OS variable, you only need one of these definitions. In the body of your program, use these variables instead of standard variables to hold pointers to OS variables that you need to keep track of through possible deletions/recreations of other OS variables.
« Last Edit: March 28, 2012, 05:38:20 pm by Runer112 »

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: TI-Concours, a french programming contest for 68k/z80
« Reply #226 on: March 28, 2012, 05:31:44 pm »
I already noticed to noelthebest that he used the wrong word : librairy = "bibliothèque" =! "librairie". Rules allow you to use Axioms (like advanced graphics ;) ), don't forget you have to include axiom.8xv in your zip.

@Eiyeron : don't worry, you don't violated any rules. x)
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: TI-Concours, a french programming contest for 68k/z80
« Reply #227 on: March 28, 2012, 07:03:20 pm »
O.O So we can use...
* Xeda112358 poofs to find that graphics library...

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: TI-Concours, a french programming contest for 68k/z80
« Reply #228 on: March 28, 2012, 09:03:57 pm »
The Tron AI is actually easy to make and I've finished it 30 minutes after I read the email O.o
Right now, I'm optimizing for speed. :D
Sig wipe!

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: TI-Concours, a french programming contest for 68k/z80
« Reply #229 on: March 28, 2012, 10:11:46 pm »
I have no idea where to start x.x I hadn't ever played TRON myself until two days ago.




Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: TI-Concours, a french programming contest for 68k/z80
« Reply #230 on: March 29, 2012, 12:41:48 am »
I already noticed to noelthebest that he used the wrong word : librairy = "bibliothèque" =! "librairie". Rules allow you to use Axioms (like advanced graphics ;) ), don't forget you have to include axiom.8xv in your zip.
Who told you I wanted to use this one ? :P
We are allowed, but will we get penalties for it or no ? :P

edit: Also, 4000 bytes is short D:
« Last Edit: March 29, 2012, 12:43:51 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 noelthebest

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 283
  • Rating: +20/-0
  • Worldwide Combos
    • View Profile
    • Worldwide Combos
Re: TI-Concours, a french programming contest for 68k/z80
« Reply #231 on: March 29, 2012, 02:38:57 am »
Deep thought -> http://www.pictogame.com/fr/play/game/HoENt7lZMvsj_flash-tron-20 can give you an idea of what you have to do.
Hayleia -> yes 4000 bytes is short, kindermoumoute decided that. :P
You are allowed, but if you are not the author of this axiom then you will lose points.
Yeong -> OMG 30 mn ??? It took me at least two days, and I was working only at this ;D

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: TI-Concours, a french programming contest for 68k/z80
« Reply #232 on: March 29, 2012, 03:49:23 am »
Runer and I have found a really bad bug on AXE: When we overwrites a Variable (app var, Os var, or idk) with GetCalc when using an another Variable already used (like a appvar who could use like save, or something else), The os get incrusted in the processus, and mess ups the two external variables. OFr one of the two ext Var, use a ]Var to stock the adress.

I decided to post this beacause Runer helped me into resolving this bug, and to clear the cheating sensations. I want this contest give us some great programs, not a fiercy battle where tricks and cheats are used. THis is an Axe failure, not my program coding.

This bug were present before the contest, I was doing for myself a tile editor, and I got the same bug, Runer saw why there is in, and is trying to fix it. We must wait for him to fix, and before, use this "patch".

If I risk my disqualification, It's only to give a chance to everyone to win this contest.
what version of axe? Is it also in 1.1.1? Since that explains sooooooooo much.
I'm not a nerd but I pretend:

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: TI-Concours, a french programming contest for 68k/z80
« Reply #233 on: March 29, 2012, 06:17:13 am »
@aeTIos: It was 1.1.2, but it is also prevalent in probably all of the Axe versions since the start.
I have no idea where to start x.x I hadn't ever played TRON myself until two days ago.
Same XD But I have ideas >.>

Offline noelthebest

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 283
  • Rating: +20/-0
  • Worldwide Combos
    • View Profile
    • Worldwide Combos
Re: TI-Concours, a french programming contest for 68k/z80
« Reply #234 on: March 29, 2012, 11:36:37 am »
Xeda and D.T. : think about what you do in order to win at the game I showed you (link).

I have a very very good news : a lot of greeaaaat prizes are coming soon.
This time 'soon' means today or tomorrow. ;D

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: TI-Concours, a french programming contest for 68k/z80
« Reply #235 on: March 29, 2012, 01:27:23 pm »
Calcs some more?
(Cry some more joke)

Offline noelthebest

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 283
  • Rating: +20/-0
  • Worldwide Combos
    • View Profile
    • Worldwide Combos
Re: TI-Concours, a french programming contest for 68k/z80
« Reply #236 on: March 29, 2012, 01:41:44 pm »
Not only. ;D
Anyway you'll see.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: TI-Concours, a french programming contest for 68k/z80
« Reply #237 on: March 29, 2012, 02:40:22 pm »
D:
* Xeda112358 waits o.o <--My eyes

I had coffee today because I have to write a paper due tomorrow (I have not had time). So maybe, if I finish early, I will be up all night programming. Sleep deprived programming is the best o.o <--- still my eyes

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: TI-Concours, a french programming contest for 68k/z80
« Reply #238 on: March 29, 2012, 02:52:59 pm »
I think use an axiom is exactly the same thing as using an uptated version of Axe Parser. The aim is to show that you master the Axe Parser, so if you use some commands in an axiom you can't be penalized.

However, you have to comment your code and explain what those commands made. That's the same rules than opcode :
- You can use them but you have to comment how it act.
- You will not be rated above it.
- The aim is not to create one.
Else you risk penalities.
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: TI-Concours, a french programming contest for 68k/z80
« Reply #239 on: March 29, 2012, 04:56:14 pm »
The Tron AI is actually easy to make and I've finished it 30 minutes after I read the email O.o
wait, what were all the emails with a bunch of tron attachments from noelthebeast? (did you guys get them too?)