Git Product home page Git Product logo

8queens's People

Contributors

davidad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

8queens's Issues

FreeBSD support

I'm not sure how to sort out the nasm autoinstall crap, so I just ran this instead:

nasm 8queens.asm -o 8queens.o -f elf64 && ld -o 8queens 8queens.o

Anyway, the syscalls are different. FreeBSD uses 1 for exit, and 4 for write. Calling convention for 64-bit x86 is identical to Linux, or at least close enough for 8queens to work.

Do not be an idiot like I was and blindly go "ok, 2 means write". It means fork. Yeah, I accidentally forkbombed myself. Fortunately, the process limit was reached and it stopped, or something like that.

With that said, support should be pretty easy.

EDIT: Also, exit() appears to return something else. rdi is the correct register, but it appears that r8 is getting mangled somewhere.

EDIT 2: -DNOPRETTY returns the correct value of 92. push r8/pop r8 around the write() syscalls results in values which are randomly larger, about 105 or something.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.