Welcome to GameHourz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

My first warrior.

 
   Game Forums (Home) -> Core War RSS
Next:  KOTH.ORG: Status - 94 No Pspace 05/22/06  
Author Message
hncaldwell

External


Since: May 23, 2006
Posts: 1



(Msg. 1) Posted: Tue May 23, 2006 11:39 am
Post subject: My first warrior.
Archived from groups: rec>games>corewar (more info?)

Watch him run in pMARS with the default window size for full effect.

;redcode-94
;name HeathTest01
;author Heath Caldwell
;assert 1

linelen equ (157)
blocklen equ (5)

org start

x dat #0, #0
y dat #0, #0
pos dat #0, #0
loc dat #0, #0
spot dat #0, #0
pic dat #1, #1
dat #3, #1
dat #5, #1
dat #6, #1
dat #7, #1
dat #10, #1
dat #13, #1
dat #14, #1
dat #15, #1
dat #17, #1
dat #19, #1

dat #1, #2
dat #3, #2
dat #5, #2
dat #9, #2
dat #11, #2
dat #14, #2
dat #17, #2
dat #19, #2

dat #1, #3
dat #2, #3
dat #3, #3
dat #5, #3
dat #6, #3
dat #7, #3
dat #9, #3
dat #10, #3
dat #11, #3
dat #14, #3
dat #17, #3
dat #18, #3
dat #19, #3

dat #1, #4
dat #3, #4
dat #5, #4
dat #9, #4
dat #11, #4
dat #14, #4
dat #17, #4
dat #19, #4

dat #1, #5
dat #3, #5
dat #5, #5
dat #6, #5
dat #7, #5
dat #9, #5
dat #11, #5
dat #14, #5
dat #17, #5
dat #19, #5

picaddr dat #0, pic

start mov.ab #pic+1, picaddr

newpic mov.f @picaddr, loc
jmz.b start, picaddr
mov.ab #last+1, spot

mov.a loc, spot
mul.a #blocklen, spot
add.ab spot, spot
mov.a #linelen, spot
mul.a #blocklen, spot
mul.ba loc, spot
add.ab spot, spot

mov.ab #blocklen, y
col mov.ab #blocklen, x
row mov.f pic, @spot

add.ab #1, spot
djn.b row, x

add.ab #linelen, spot
sub.ab #blocklen, spot
djn.b col, y

add.ab #1, picaddr
last jmp newpic

end

 >> Stay informed about: My first warrior. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
tiny warrior: desTiny - R.I.P. Destiny After pushing off i would like to publish desTiny. desTiny was based on "Soft as Silk" which get an nice age on tiny. I have changed the decoymaker in front to an 2c-quickbomber which gave him nice extra points. After boot i ju...

Score Surface for 94nop - Hi, some anonymous person (still called "bvowk" for simplicity ;-) is so kind to provide access to a pile of computers. I have suggested to calculate one score surface for standard settings. It takes roughly 1000 times the time of one "no...

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: ;redcode-tiny ;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 -=- irc.KOTH.org is up! Meetings held in #corewars -=- Tons of new features on www.KOTH.org/koth.html pages -=- *FAQ* page located at: www.KOTH.org/corewar-faq.html Current Status of the KOTH.ORG ICWS Experimental 94..

KOTH.ORG: Status - MultiWarrior 94 03/06/06 - Weekly Status on 03/06/06 -=- irc.KOTH.org is up! Meetings held in #corewars -=- Tons of new features on www.KOTH.org/koth.html pages -=- *FAQ* page located at: www.KOTH.org/corewar-faq.html Current Status of the KOTH.ORG Multiwarrior 94 CoreWar..
   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 ]