The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiuter PlotChat
#9
@Compiuter, why don't you put the ASM context encapsulated into the subroutine? Otherwise, people including your files might experience the same *crash* programandala did when using #INCBIN. Try this:

Code:
SUB PlotChar(file as ubyte,colum as ubyte, charadr as uinteger) ASM halt call prixor END ASM RETURN ASM ... ; prixor code END ASM END SUB
If you're interested, you can __FASTCALL__ your subroutine, which makes is a little faster, and allow using RET directly:
Code:
SUB __FASTCALL__ PlotChar(row as ubyte, colum as ubyte, charaddr as uinteger) ASM pop hl ; ret address pop de ; ld d,(IX+5) ;colum ld e, a ; ld e,(IX+7) ;row ex (sp), hl ; This will exchange ret-address with charaddr in the stack ; ld l,(IX+8) ;lowbyte charaddr ; ld h,(IX+9) ;highbyte charaddr ld b,8 halt // Prixor Code goes here END ASM END SUB
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)