#166702 - a128 - Sun Feb 15, 2009 12:32 pm
Since Ideas 1.0.2.8 beta there are calls to output strings on the debug console of the emulator, and you can trigger breakpoints.
From the changelog:
# Added program breakpoint (SWI #0xFDFDFD).
# Added output on console for user's messages (SWI #0xFCFCFC).
So I used this functions , and it works fine on windows. on linux it also works , but you have to open the debug window first. Lino will bug fix the linux version soon.
it has to be in ARM mode
From the changelog:
# Added program breakpoint (SWI #0xFDFDFD).
# Added output on console for user's messages (SWI #0xFCFCFC).
So I used this functions , and it works fine on windows. on linux it also works , but you have to open the debug window first. Lino will bug fix the linux version soon.
it has to be in ARM mode
Code: |
.global ideasMessage .arm //--------------------------------------------------------------------------------- //ideas 1.0.2.8 debug output function //--------------------------------------------------------------------------------- ideasMessage: // params = { string } //--------------------------------------------------------------------------------- // ldr r0,=buffer // get buffer address swi 0xfcfcfc bx lr // exit .thumb .global ideasBreak .arm //--------------------------------------------------------------------------------- ideasBreak: swi 0xfdfdfd bx lr // exit .thumb //--------------------------------------------------------------------------------- .pool |