Coder Social home page Coder Social logo

Comments (4)

drj11 avatar drj11 commented on August 24, 2024

One way of achieving 2) is by defining the word #! to skip to the next LF, and requiring that all #! scripts use a space after the #!. There are other ways.

from sixtyforth.

drj11 avatar drj11 commented on August 24, 2024

In order to do 1) we have to process argv. No idea what the binary protocol is.

from sixtyforth.

drj11 avatar drj11 commented on August 24, 2024

a hint from some now forgotten Stack Overflow question led me to discover that the pointers are all on the stack, already in C's argc, argv format.

rsp will have been initialised to point to sequence of valid memory locations.

(NASM notation)

[rsp] is argc, the count of arguments, including the 0th argument (the name of the executable).

following (at increasingly higher address) are argc pointers, each pointer pointing to a C-style NUL-terminated string.

Following that is a NULL pointer (0x0).

from sixtyforth.

drj11 avatar drj11 commented on August 24, 2024

Fixed by 30cc28e

from sixtyforth.

Related Issues (9)

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.