-
Notifications
You must be signed in to change notification settings - Fork 19
Implement host prefix cmds #29
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
base: main
Are you sure you want to change the base?
Conversation
To add the host prefix stuff to Apple II on my unified fuji device branch, all I had to do was add these 3 lines to iwmFuji: |
| unsigned char hs; | ||
| } ghp; | ||
|
|
||
| memset(response,0,sizeof(response)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isn't required anymore, the values are immediately set
| { | ||
| // Not implemented in A2 | ||
| return false; | ||
| // Not implemented in A2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the comment
| bool is_success; | ||
| int bytes_read; | ||
|
|
||
| filename = malloc(256); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've avoided using malloc in library. it pulls a huge chunk of cc65 into the application and is much better just using a static array.
|
|
||
| pl_len = strlen(prefix) + 3 + 1; // add 1 for the null string terminator, although technically not required as we go by lengths | ||
|
|
||
| pl = malloc(pl_len); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto (just trying to tag them all)
At @FozzTexx ask, implement get and set host prefixes for all current lib targets.
Apple still needs addit'l commands in firmware added for get host prefix.