It is currently Mon May 20, 2019 8:05 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Mon Mar 18, 2019 8:41 am 
Offline

Joined: Thu Mar 07, 2019 11:18 am
Posts: 5
How do I assemble assembly code, I'd like to code in 6502 assembly, not in C


Top
 Profile  
 
PostPosted: Mon Mar 18, 2019 9:17 am 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 2505
Location: DIGDUG
He was explaining how to compile an assembler that would work on Mac.

asm6 is an assembler. But it's a windows assembler. Hence, having to recompile it to work on a Mac.

Personally, I would just go to ebay and get a cheap used windows laptop. $50.

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
PostPosted: Mon Mar 18, 2019 9:37 am 
Online

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 21387
Location: NE Indiana, USA (NTSC)
ASM6 is not "a Windows assembler". It's written in reasonably portable C and appears to work correctly on my Ubuntu laptop.

Returning to the previous question:
If you have a program written in assembly language and an assembler written in C, you need to do two steps:

  1. Compile the assembler written in C using a C compiler, producing the assembler in executable form.
  2. Run the assembler in executable form on your assembly language program, producing your program in executable form.

_________________
Pin Eight | Twitter | GitHub | Patreon


Top
 Profile  
 
PostPosted: Mon Mar 18, 2019 11:23 am 
Offline
User avatar

Joined: Sat Feb 16, 2013 11:52 am
Posts: 327
https://github.com/gregkrsak/first_nes

This may help you.

_________________
This is a block of text that can be added to posts you make. There is a 255 character limit.


Top
 Profile  
 
PostPosted: Mon Mar 18, 2019 12:18 pm 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 2505
Location: DIGDUG
Quote:
ASM6 is not "a Windows assembler".


Funny, I'm looking at the download page, and it says "OS: Win". So, a person looking at that, who wasn't used to compiling their own tools, might conclude that it wasn't a Mac app.

Which is why I said he'd have to recompile.


Quote:
https://github.com/gregkrsak/first_nes

This may help you.


ca65 would also need to be recompiled to work on a Mac.

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group