C
Reaction score
0

Profile posts Postings About

  • Code:
    [B]GCD:[/B]
      push ebp
      push esp
      mov ebp,esp
      mov ecx,[ebp+c]
      mov eax,[ebp+8]
      test ecx,ecx
      jz [B]END[/B]
      cdq
      idiv ecx
      push ecx
      push edx
      call [B]GCD[/B]
      pop esp
    
    [B]END:[/B]
      pop ebp
      ret


    (result returned to eax)
    ...
    use strict;
    use warnings;
    print "Gimme a number:";
    my $one = <>;
    chomp $one;
    print "Gimme another number:";
    my $two = <>;
    chomp $two;
    my $x;
    if($two<$one){
    $x = $two;
    }
    else{
    $x = $one;
    }
    my $GDC = GDC($x);
    print $GDC;
    <>;
    sub GDC{
    my ($z) = @_;
    my $a = $one%$z;
    my $b = $two%$z;
    my $c = $a || $b;
    if($c == 0){
    return $z;
    }
    return GDC((--$z));
    }
    I think it was well worth the wait
    Ame Manga is the best thing ever. Shame there's only like 20 pages.
    Yesssssss I do! I was worried I might not for a second there because I didn't keep a few of the old challenge-type mods.

    Will upload and post link in thread.
    Whats the name of that game in your avatar dude?
    Been looking for it a while. I remeber playing it a while back, Along with a game called nayoto love or something like that.
    Ah, err, I've kind of gotten used to working with OllyDbg since then, and have gotten the shotgun working by writing it in as it's own function call. Nice to see that you're back though!
    Thank you :]

    I'm glad to hear that you are still working on the assembler, because it's a great tool (even if I don't really need it anymore >.>)
    I know that GIR actually made some minor modifications to it for his own use (he likes to put labels on the same line as instructions), can't remember if there was anything else. The biggest issue I had was, of course, incompatible commands (primarily with different command sizes) and not really being able to tell where an error occurred if I did get one.

    There's one command in particular I remember that I wasn't able to do, basically here:
    mov eax, weapon
    mov ecx, level
    mov [eax+4], ecx
    dec ecx
    mov edx, [eax]
    imul edx, edx, 0C
    data 8B 8C 8A 60 36 49 00 ;mov ecx, [ecx*4 + edx + 493660]
    obviously the commented command at the end is the one that wouldn't work. Not something I'd expect most people to try but it definitely saves some space in the right context.

    I'll give your new assembler a try when it's ready, after all, I'll probably still end up doing a fair bit of hacking for other people now and again.
    Lol kind of. Smoking is eh, I'll miss next election by a hair, and who cares about 18+ for porn?
    And yeah, I am really 16.
    Not some creepy stalker :D
    Hello Carrotlord, I was wondering if you would mind if I placed your name under a list of Acknowledgements in the Readme file for my mod. If you have any objections, please let me know. Cheers and all the best.
    Ah, that's good news. I keep forgetting about V2, I'll probably have to get used to it eventually though :/
    Still, thanks for the heads-up.
  • Loading…
  • Loading…
Top