Skip to content

Commit

Permalink
Fix set up of PT modules position at the beginning (backported from c…
Browse files Browse the repository at this point in the history
…53285b)
  • Loading branch information
cahirwpz committed Dec 16, 2023
1 parent 45aa9f8 commit c255c3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion include/ptplayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ typedef struct {
u_char mt_PattDelTime2;
} __attribute__((packed)) PtPlayer;

extern PtPlayer PtData;
extern u_short PtPatternPos;
extern u_char PtSongPos;

#endif
6 changes: 4 additions & 2 deletions lib/libpt/pt.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
xdef _PtRemoveCIA
xdef _PtInit
xdef _PtEnd
xdef _PtData
xdef _PtSongPos
xdef _PtPatternPos
xdef _PtEnable
xdef _PtE8Trigger

section '.text',code

_PtData set mt_data
_PtEnable set _mt_Enable
_PtE8Trigger set _mt_E8Trigger
_PtSongPos set mt_data+mt_SongPos
_PtPatternPos set mt_data+mt_PatternPos

_PtInstallCIA:
movem.l d2-d7/a2-a6,-(sp)
Expand Down

0 comments on commit c255c3f

Please sign in to comment.