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

Linux port #1

Merged
merged 6 commits into from Jan 24, 2021
Merged

Linux port #1

merged 6 commits into from Jan 24, 2021

Conversation

iss000
Copy link
Contributor

@iss000 iss000 commented Jan 22, 2021

This is quick port to Linux. It allows compiling of the 3 command-line utilities and 'dflat.rom' + proper 'dflat.pch' file.
Some work is needed for full portability (i.e. for big-endian platforms) - mainly the WAV-header structure and calculations of 'datalength' and 'riff_size' fields, which assumes 'int' is 32-bit little-endian number.

Important: Please, check before merging if as65.exe under Windows accepts '/' as include path separator instead of '\'.

Else, @6502Nerd, congrats for the language and for the high quality assembler sources!

@seclorum
Copy link
Contributor

Hey @iss000, I added Darwin (defined APPLE) support to your port of these tools, so maybe you wanna include that in this PR first, as well? Have tested, seem to work fine once your code is used for the Windows-specific things ..

Also, might be worthwhile moving to stdint.h types in the near future, at least it would be good for the Darwin future ..

Include __APPLE__ in the fopen_s function definitions
@6502Nerd
Copy link
Owner

Hello iss000 and seclorum - great that there is a port! I am a GitHub noob so please allow me a bit of time to check the changes and work out how to test this.
I'm really happy that you both took the time to look at the code an propose some changes - thank you! 👍

@6502Nerd 6502Nerd merged commit e109033 into 6502Nerd:Oric Jan 24, 2021
@6502Nerd
Copy link
Owner

Have merged this back in to main branch

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

Successfully merging this pull request may close these issues.

None yet

3 participants