Mariano DM Posted January 3 Share Posted January 3 Hello. I'm trying to debug my routine called from c to assembler AFAIK, last argument is always in accumulator, like this : ; void __fastcall__ _setcolor (unsigned char color_reg, unsigned char hue, unsigned char luminace); .proc __setcolor sta lum ; remember luminance jsr popa ; get hue asl a and then popa, gets the arguments right to left. however, I see some calls that get the rightmost element manually, and define the external and internal function gotoxy: jsr popa ; Get Y _gotoxy: ; Set the cursor position sta ROWCRS ; Set Y jsr popa ; Get X sta COLCRS ; Set X I tried both, bit is seems there is no difference, and what is the calling convention ? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.