Welcome to GameHourz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Concept: FixerV1 (detects bombed instructions, and fixes i..

 
   Game Forums (Home) -> Core War RSS
Related Topics:
Score Surface for 94nop - Hi, some anonymous person (still called for ;-) is so kind to provide access to a pile of I have suggested to calculate one score surface for standard settings. It takes roughly 1000 times the time of one surface to..

Bug in pMARS - Hi, either I don't know how EQUs work or I have found a bug in the parser of pMARS. So far I cound pin it down to: ;name test ;assert CORESIZE == 800 v3 EQU 3 * (3 / 2 + 1) + 3 v4 EQU (CORESIZE - v3) dat.f v3, v4 With the..

KOTH.ORG: Status - ICWS Experimental 94 03/06/06 - Weekly Status on 03/06/06 -=- is up! Meetings held in #corewars -=- Tons of new features on pages -=- *FAQ* page located at: Current Status of the KOTH.ORG ICWS 94..

KOTH.ORG: Status - MultiWarrior 94 03/06/06 - Weekly Status on 03/06/06 -=- is up! Meetings held in #corewars -=- Tons of new features on pages -=- *FAQ* page located at: Current Status of the KOTH.ORG 94 CoreWar..

KOTH.ORG: Status - 94 No Pspace 03/06/06 - Weekly Status on 03/06/06 -=- is up! Meetings held in #corewars -=- Tons of new features on pages -=- *FAQ* page located at: Current Status of the KOTH.ORG 94 No Pspace CoreWar Hill:..
Next:  Core War: CoreWin: run all threads once/for one cycle.  
Author Message
Skybuck Flying

External


Since: May 25, 2006
Posts: 295



(Msg. 1) Posted: Fri Dec 21, 2007 9:26 am
Post subject: Concept: FixerV1 (detects bombed instructions, and fixes it, serialized !)
Archived from groups: rec>games>corewar (more info?)

;redcode
;name FixerV1
;author Skybuck Flying
;strategy threads-serialized-fixer. One thread per instruction.
;version 1
;date 21 december 2007
; pretty cool could come in handy to fix stuns quite fast
spl 1 ; 2
spl 1 ; 4
spl 1 ; 8
spl 1 ; 16
ScanIt
mov.ab #1, ThreadCounter
jmz.f DoFixIt, >ThreadCounter
DontFixIt
mov.ab #1, ThreadCounter
nop $0, >ThreadCounter
jmp ScanIt

DoFixIt
mov.ab #1, ThreadCounter
mov Fix, >ThreadCounter
jmp ScanIt

Fix nop $777

ThreadCounter dat $0, $1
nop 1
nop 2
nop 3
nop 4
nop 5
nop 6
nop 7
nop 8
nop 9
nop 10
nop 11
nop 12
nop 13
nop 14
nop 15
nop 16

 >> Stay informed about: Concept: FixerV1 (detects bombed instructions, and fixes i.. 
Back to top
Login to vote
Skybuck Flying

External


Since: May 25, 2006
Posts: 295



(Msg. 2) Posted: Fri Dec 21, 2007 9:27 am
Post subject: Re: Concept: FixerV1TesterV1 (test program for FixerV1) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

;redcode
;name FixerV1TesterV1
;author Skybuck Flying
;strategy test program for FixerV1
;version 1
;date 21 december 2007
; set warrior to start at position 100
; wait a bit
djn 0, #500

; then bomb a location to see the fix in action ! Wink
mov Bomb, -85

; spin
jmp 0

Bomb dat $0, $0

 >> Stay informed about: Concept: FixerV1 (detects bombed instructions, and fixes i.. 
Back to top
Login to vote
Skybuck Flying

External


Since: May 25, 2006
Posts: 295



(Msg. 3) Posted: Fri Dec 21, 2007 9:30 am
Post subject: Re: Concept: FixerV1TesterV1 (test program for FixerV1) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Stupid me lol,

I just realized this is more or less the same as HealthRepairVetc.

Maybe this one a bit faster though Wink

Just for cleared memory or so.

Bye,
Skybuck.
 >> Stay informed about: Concept: FixerV1 (detects bombed instructions, and fixes i.. 
Back to top
Login to vote
Skybuck Flying

External


Since: May 25, 2006
Posts: 295



(Msg. 4) Posted: Fri Dec 21, 2007 9:31 am
Post subject: Re: Concept: FixerV1TesterV1 (test program for FixerV1) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Except, maybe this one is much simpler.

It scans itself instead of the other one.

Maybe it could then simply look for the necessary replacement instruction
somewhere else...

Bye,
Skybuck.
 >> Stay informed about: Concept: FixerV1 (detects bombed instructions, and fixes i.. 
Back to top
Login to vote
Display posts from previous:   
   Game Forums (Home) -> Core War All times are: Ekaterinburg, Islamabad, Karachi, Tashkent (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]