Jump to content

mplab : triyng to compiling setup 808 asm file


warpboy
 Share

Recommended Posts

hello,

I'd like to modify setup808 default.asm, I use mplab v8.46 + mpasm (pc version).

When I click to compile this file I have plenty of errors (for this try, I don't modify anything in the asm file, just try to compile it!)

you can see these errors in the attached file.

I'm sure these errors are newbie problem...

help is welllllllllllllllllllllllllllcome

thank you

Link to comment
Share on other sites

hello,

thank you for your reply.

I'll try to install sdcc ...

My seq works and I've made first tests using trigs outs ( I've connected bd and snare trigs at shift register #1)

It's perfect bassdrum works better that I expected :frantics:

Thorsten, you're THE king :ninja:

Link to comment
Share on other sites

hello,

thank you Altitude for these infos.

I don't understand why when I open setup_808_default.asm (with a text editor), I see C code and no asm....maybe I false (newbie stupid question..)

then how can sdcc re-compile after an edit, if sdcc works with C program, it'll not recognize an asm extension file ? :wacko:

Thank you by advance

Warpboy

Link to comment
Share on other sites

The MB808 is pure assembly code and doesn't require a C compiler.

In order to build a new .hex file on a Windows PC, you have to install gputils and MinGW (as a Unix replacement to execute the Makefile)

On a Mac or Linux PC, you only have to install gputils.

Then go into the application directory and type make -> done

It should even be possible to create .hex files without the Makefile mechanism (so that you don't need MinGW), just execute the commands directly in a command shell or from a .bat file:


gpasm -p p18f4620 -I./src -I ./include/asm -I ./include/share -I ./modules/app_lcd/dummy -I ./modules/iic_midi -I ./modules/aout setup_808_mbseqv3_hardware.asm
gpasm -p p18f4620 -I./src -I ./include/asm -I ./include/share -I ./modules/app_lcd/dummy -I ./modules/iic_midi -I ./modules/aout setup_808_mbseqv3_tk.asm
gpasm -p p18f4620 -I./src -I ./include/asm -I ./include/share -I ./modules/app_lcd/dummy -I ./modules/iic_midi -I ./modules/aout setup_808_tk.asm
gpasm -p p18f4620 -I./src -I ./include/asm -I ./include/share -I ./modules/app_lcd/dummy -I ./modules/iic_midi -I ./modules/aout setup_808_default.asm
gpasm -p p18f4620 -I./src -I ./include/asm -I ./include/share -I ./modules/app_lcd/dummy -I ./modules/iic_midi -I ./modules/aout setup_808_with_swingpot.asm
[/code]

thats all!

MPLAB isn't supported, and I don't see the need for this (too cumbersome and error prone)

Best Regards, Thorsten.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...