October 23, 2019, 07:16:50 pm

News:

Juju thinks he's so clever by putting funny stuff here


The shoutbox is currently out of service. Join us on Discord instead.

[CWick#1] iv.bat ~ Invalidating itself since 2015

Started by brentmaas, September 24, 2015, 07:12:21 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DJ Omnimaga

On a side note, did you guys know that self-modifying code is possible on calculators too? :P (eg in Axe and ASM to store highscores)

c4ooo

You generally dont want to use SMC, if you use it to store high scores or something, then you will have to do program write back, which isnt even suported in no stub programs, IIRC. Plus writing the program back will take extra time, as well as saturate your archive faster. Lastly you cant even do SMC in apps. SMC is good however for small optimization in programs - where the code modification is destroyed after the program exits (no write back)

Snektron

You can use SMC if you're writing an AI that improves itself :P
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Juju

I actually considered making SMC a theme of a future contest, would it be too hard to do on calc? If so I guess I'll just do something else, I guess.
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

Snektron

You need some pretty high asm knowlege for that, so only like 3 people would participate...
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Juju

Figured, you'd have to find the right program in the VAT and modify it correctly, you'd need quite some knowledge. Same for PC languages to a certain extent, if you want to do something fancy, although @brentmaas' program is pretty much the simplest thing you can do in terms of SMC.
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

c4ooo

October 08, 2015, 08:02:36 pm #21 Last Edit: October 09, 2015, 10:24:51 am by c4ooo
Well.. as long as you allow the program to be destroyed after run then it wont be so hard, but its almost imposible to do (My brain auto-corrects to "do to" :P ) byte-by-byte SMC in axe. You could however swap out something like Goto XXXX with goto YYYY quiet easely if you know a thing or two about how axe works under the hood. Yet once again- not all people know that much. Further more, SMC will basicly prevent basic users from competing.

DJ Omnimaga

Quote from: c4ooo on October 08, 2015, 07:31:52 pm
You generally dont want to use SMC, if you use it to store high scores or something, then you will have to do program write back, which isnt even suported in no stub programs, IIRC. Plus writing the program back will take extra time, as well as saturate your archive faster. Lastly you cant even do SMC in apps. SMC is good however for small optimization in programs - where the code modification is destroyed after the program exits (no write back)
Yeah that's the main issue. You need to make the program require a shell and I hate when it garbage-collects every three minutes because of program writeback.

Powered by EzPortal