Skip to content

Access command line arguments (argv and argc) in AAarch64/Darwin assembly #22

@jrosengarden

Description

@jrosengarden

I'm hoping you can possibly answer this question???

I've been working thru the book and your code changes in order for everything to work on the Machine We Must Not Speak About.

I'm trying to extend one of the Chapter 4 exercises and access the command line argument(s) (argc & argv) within my assembly code. I've searched high and low and just can't find anything that applies (or works).

Could you possibly provide any clues/hints on how to access the command line arguments (argv and argc) within the assembly program.

This very simple program is working fine but if you read the TODO, in the attached code, what I'm trying to do should make sense.

case.txt

Thanks much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions