Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 68000 function bindings in doc so they work with 68000 #19

Open
vinz6751 opened this issue Nov 22, 2021 · 4 comments
Open

Update 68000 function bindings in doc so they work with 68000 #19

vinz6751 opened this issue Nov 22, 2021 · 4 comments

Comments

@vinz6751
Copy link
Contributor

The function bindings in the manual make use of lea <ea>,Dn , but this not supported on the 68000 (only from 68020 probably?), on the 68000, LEA's destination register must be an address register.

So we have to use:

  • move.l #buffer,d0 if using an immediate address
  • otherwise go through an address register e.g.
lea.l (a0,d6),a6
move.l a6,d0

I can do the update in a few days hopefully.

@pweingar
Copy link
Owner

Oh good catch. Foolishness on my part, and maybe a copy-paste mistake. I may go ahead and fix these tonight.

@pweingar
Copy link
Owner

I have updated them (I think). Take a look sometime and let me know if it looks right now. I really should have used working examples.

@vinz6751
Copy link
Contributor Author

vinz6751 commented Dec 9, 2021

Thanks for the update, the example for sys_fsys_open on page 24 still needs adjusting.
The rest looked fine

@pweingar
Copy link
Owner

I've updated sys_fsys_open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants