Welcome, Guest. Please login or register.

Author Topic: Coldfire AGAIN  (Read 25760 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Oli_hd

  • Hero Member
  • *****
  • Join Date: Apr 2002
  • Posts: 912
    • Show all replies
Re: Coldfire AGAIN
« on: March 29, 2008, 05:19:55 PM »
Quote
Well, for one, I seem to recall that MULS and MULU fail to set the overflow bit of the condition code register.

Correct but the 68Klib provided free by freescale can emulate these instructions, you simply have to add an instruction before it to trigger the CPU's invalid instruction trap and then the emulator will give you a fully 68K compatiable MULS and MULU. (the other instructions are the DIV ones I think)
This wouldnt need to be done at compile time, a program could be wrote to insert the trap code into a binary file at the correct places.

/me goes back to watching all the Coldfire threads