NefMoto

Technical => Reverse Engineering => Topic started by: jcsbanks on February 18, 2016, 05:44:09 AM



Title: C167 assembler
Post by: jcsbanks on February 18, 2016, 05:44:09 AM
Trying to get Keil tools to assemble a simple file but keep getting errors.

Anyone have a barebones assembler for C166/167 that will produce snippets of code for patching?

http://www.keil.com/forum/60979/#/msg199120


Title: Re: C167 assembler
Post by: dream3R on February 18, 2016, 10:50:46 AM
Trying to get Keil tools to assemble a simple file but keep getting errors.

Anyone have a barebones assembler for C166/167 that will produce snippets of code for patching?

http://www.keil.com/forum/60979/#/msg199120

Keil works fine but iirc 8k limit. 


Title: Re: C167 assembler
Post by: jcsbanks on February 18, 2016, 11:08:02 AM
8K is more than enough, I would just like to be able to assemble a file with a single NOP in it though and produce an object file!


Title: Re: C167 assembler
Post by: dream3R on February 18, 2016, 12:32:40 PM
lol


Title: Re: C167 assembler
Post by: jcsbanks on February 18, 2016, 12:33:02 PM
This now works LOL.

For reference, you need a section and a proc enclosing your code.

john2 section code
john proc near

   nop

john endp
john2 ends
END


Title: Re: C167 assembler
Post by: DT on February 18, 2016, 02:08:39 PM
How nice if everybody shared their solution like you just did.
Really good 3rd post on the forum.


Title: Re: C167 assembler
Post by: jcsbanks on February 18, 2016, 02:51:36 PM
Thanks. My routine is to copy maps from flash to RAM. I am running the fuelling from RAM as of last night, but on key off after power latch the RAM contents are lost so I need to repopulate them.


Title: Re: C167 assembler
Post by: jcsbanks on February 19, 2016, 06:31:12 AM
Routine works. Now expanding to allow multiple different maps to be copied to RAM by parsing a table.


Title: Re: C167 assembler
Post by: fknbrkn on February 19, 2016, 02:40:20 PM
Routine works. Now expanding to allow multiple different maps to be copied to RAM by parsing a table.

imo with indirect word/byte location

but why are you need whole map in ram?


Title: Re: C167 assembler
Post by: jcsbanks on February 19, 2016, 03:54:52 PM
The group copy is working after some DPP fun.

It is for realtime mapping mainly aimed at turbocharging.


Title: Re: C167 assembler
Post by: DT on February 19, 2016, 04:20:37 PM
figured  :)
, but do search for Roadrunner by moates. With that flash emulator you can use your time to tune instead.


Title: Re: C167 assembler
Post by: jcsbanks on February 19, 2016, 04:41:29 PM
This is Siemens MS43 so there are a number of reasons to go this way rather than hardware emulator.