[00:57] MSG: Ping timeout: 252 seconds [05:29] Join: fiveop joined #corewars [08:01] Join: Adamantiu joined #corewars [08:43] MSG: [10:45] Join: Mizcu joined #corewars [11:27] Join: caesar joined #corewars [11:27] hi [11:28] hi caesar [11:29] hi~~ [11:29] how r u ,mizcu [11:30] bit better than yesterday [11:30] only few muscles sore [11:30] ok~ [11:31] so ~ [11:31] mizcu a simple corewars program like what? [11:32] dwarf is simple [11:39] ok [11:39] thx mizcu [11:39] i got to go now. [11:40] bye [11:40] Part: caesar left #corewars [11:40] Join: Roy joined #corewars [11:42] hi [11:42] hi R [11:44] What did you do hurting your muslces? [11:44] 2*4.5 hours of Martial training Sat and Sun [11:45] 9 hours total [11:52] Heh, thats quite a bit of training yes [12:44] MSG: Ping timeout: 252 seconds [13:09] Join: Roy joined #corewars [13:31] MSG: [16:41] Join: John joined #corewars [16:41] Hi [16:51] Join: Nenad joined #corewars [16:51] hi [16:52] Hi Nenad [16:53] :) I just hopped in to say hello [16:53] I'm only here for a few minutes :-) [16:53] returned from univ. a few minutes ago - the clustering project is now officially accepted :) [16:54] anyway, I'll probably go and read some sf now, to relax [16:55] when did you last see Will? [16:57] Not sure, a week or two ago [16:58] hmm... [16:59] well, I hope that I'll run into him here soon. It's been really quiet here lately... [17:00] Maybe we should continue with miniirc tourneys on sunday nights? [17:01] perhaps I'll be back later tonight... [17:01] * Nenad waves [17:01] MSG: [17:01] Join: Fizmo joined #corewars [17:01] * John waves [17:01] hi [17:01] Hi Christian [17:02] u wanted to leave now? [17:02] still working on tiny hill page [17:02] I am leaving in 10 minutes to catch train [17:03] Anything online yet? [17:04] We seem to be duplicating some of each other's work :-( [17:04] Join: erus` joined #corewars [17:04] hi, is anyone active? [17:05] hi erus [17:05] new here? [17:05] Hi Erus [17:06] well, some of us yes ;-) [17:06] but also some loggerz :-P [17:06] ok thanks [17:07] im having a real design issue trying to creat a warrior that can shift its whole codebase to another location [17:08] im back [17:08] create* [17:08] for example -> to shift my code i need to MOV it all, but todo it again i need to MOV the code to MOVE it [17:09] and it goes on forever [17:09] Erus: put the MOV in a loop [17:09] yep [17:10] you're speaking about a replicator [17:10] Erus: with two points, one you are copying from the other you are copying to [17:10] which instruction set you are using? [17:10] making a self-copying program is excellent place to start your coding [17:10] '88 or '94 [17:11] i know C++ [17:11] but this is a nice change ;) [17:11] I would go for '94 set [17:11] well, you need to use two locations as pointers; one location containing the line you are going to copy, and them second as the target place [17:13] i was storing stuff in the fields of nops before and im sure this is bad, but what can i do instead? [17:13] just stay with the nops until you can get it to copy [17:13] maybe copy your code here [17:13] then search for an empty or useless a- or b-fields and put the values in them [17:13] so we can help suggest some tweakings [17:14] ok [17:14] gonna try re-writting the whole thing [17:14] brb [17:18] one tiny little thing - #-1 <- is prev Op's field A? [17:19] ah no [17:19] $-1 would be [17:20] and what is for field B please? [17:20] or is it relative to the current field reading from? [17:21] you do not specify it with modifiers ( $#{< ) [17:21] depends which opcode you mean [17:21] under 88 -standard it is instruction-dependant [17:21] it depends on modifier (.a .ab .ba .b .x .i .f) [17:21] ah ok [17:22] if you want to move a-field, you use mov.a (a to a) or mov.ab (a to b) [17:22] modifiers are 94-standard addition [17:22] i need to MOV X, Y with X, Y and being the two field of one OP [17:23] this is really confusing [17:23] mov.f moves a&b to a&b [17:23] mov.x moves a&b to b&a [17:24] no i want to move a whole instruction located at X to Y, when X and Y are both fields of another instruction. :S is that legal? [17:24] mov.i moves whole instruction [17:25] ah, you want to use another instruction as a pointer? [17:25] sortof yes [17:25] well then you will use modifiers; like [17:25] mov.i *pointerinstruction, @pointerinstruction [17:25] * uses instructions a-field a pointer, @ uses the b-field [17:25] ah great [17:26] thanks [17:26] a-field as pointer [17:29] if i do SNE *-3, 6 will it actually count 6 as a constant number? [17:30] ah i need # ? [17:30] yes, you need # [17:35] ADD.ab -1, #1 <- im trying to increase the previous inst fields by 1 . this does not work as i hoped [17:36] you want to increase both fields? [17:36] yep wrong mod i think [17:36] sub.f -1, #-1 [17:37] its ugly way, but it works [17:38] remember, that add.f #5, 1 actually adds 5,1 , not 1,1 [17:38] nor 5,5 [17:38] hmm [17:39] that complicates adding to both fields without using another instruction to contain the numbers to add/subtract/move/whatever [17:39] so how do i increse both feilds of my instruction by one? because this is only altering the current instruction :/ [17:39] my mistake [17:39] sub.f #-1, -1 [17:39] sheesh [17:39] bad day [17:40] other way would be nop }-1, >-1 [17:40] ah yes [17:40] } and > mean in C "*pointer++" for a- and b-fields [17:41] however i dont know how to do pre-decrement in C , so i cant "C-ify" < and { [17:42] ++pointer ? [17:42] thats pre [17:42] --*pointer [17:42] ugh [17:42] --pointer, *pointer [17:43] Havent studied C myself at all, i know i should, but i am prime example of inherent lazyness in computer-people [17:43] haha what should line do MOV *-2, @-2 please. sorry for al lthe questions. im having trouble getting to grips with this [17:45] it looks at the values in -2, takes the instruction that the a-field in -2 points at, and moves the instruction at place where the b-field of -2 points at [17:45] ah [17:45] no wonder [17:46] hmm nope [17:47] can i paste some code, if your not too busy? [17:47] into pastebin [17:47] sure [17:49] http://www.rafb.net/paste/results/wxpE4J47.html [17:53] why is your source set at -3? [17:53] 3 lines back from that inst [17:53] the mov [17:53] Line 1 you don't really need [17:53] ah [17:54] pointer might be bit bad naming for the re-direction, because the value is not "copied" to mov [17:54] Start NOP -3, -18 [17:54] and at the end of the code [17:54] end Start [17:54] ok [17:54] erhhm [17:54] Start nop }-1, >-1 [17:55] here you want to start [17:55] forget that with NOP [17:56] erm [17:56] the first nop stores the pointers [17:56] I mean with the Start [17:57] http://www.rafb.net/paste/results/683GxJ37.html [17:57] that code copies itself fine, once [17:58] it doesnt reset itself after the first copy, so second copy will not copy itself correctly [17:58] yes [17:59] you might want to check how that code runs in pmars or corewin [17:59] so you have to reset the pointer [17:59] and then think of the way to reset it [18:00] the pointer where to copy could be moved to the b-field of line 5 [18:01] and the first line could be changed in [18:01] mov #0, #0 [18:02] but it means that you have to copy line 1 as well [18:02] that shouldn't be a problem [18:06] http://www.rafb.net/paste/results/GJ9YKp95.html [18:06] at a first glance I would say that it will work [18:07] for once, as before [18:07] ahh, no it won't [18:07] yes, ok I know why [18:09] because the distance will change with each copy [18:09] but the jump at the end will stay fixed [18:10] so you have to do that otherway round [18:10] copy from the last instruction to the fist [18:10] first [18:10] dont mess him up too much [18:10] dont go reversing the direction yet [18:11] btw, there is still a bug. it must be jmp -20 [18:11] jmp @-20 [18:11] MSG: [18:12] hrmm [18:12] jmp -@20 won't work [18:12] :( [18:13] you could swap jmp -20 and jmp start, and turn seq into sne [18:13] seems I messed him up [18:13] that would require some reconstruction still.. [18:14] better copy from the back to the front, then you could use @* for that [18:14] otherwise you have to add an add to adjust the jmp after each copy [18:15] hmmm [18:15] sorry I have to go now [18:15] * Fizmo waves [18:16] MSG: [19:13] Join: elkauka joined #corewars [20:11] MSG: [20:37] Join: fiveop_ joined #corewars [20:40] MSG: Ping timeout: 252 seconds [20:55] Join: John_ joined #corewars [20:56] Join: Fluffy joined #corewars [20:56] :) [20:57] :) [20:57] Nick Change: fiveop_ changed nick to fiveop [20:58] MSG: Ping timeout: 252 seconds [20:58] I've found a stupid bug in the last beta of PyCorewar [20:58] Nick Change: John_ changed nick to John [21:03] MSG: Quit: leaving [22:45] damn, i havent had this insane idea in over a year [22:58] MSG: Quit: humhum