Skip to content

Commit

Permalink
Another bug fix. Can't use _Ramwrite directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
MockbaTheBorg committed Nov 2, 2024
1 parent b0b9ca3 commit f615a25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RunCPM/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -1137,9 +1137,9 @@ static void PUT_WORD(uint16 a, uint32 v) {
#define RAM_MM(a) GET_BYTE(a--)
#define RAM_PP(a) GET_BYTE(a++)

#define PUT_BYTE_PP(a,v) _RamWrite(a++, v)
#define PUT_BYTE_MM(a,v) _RamWrite(a--, v)
#define MM_PUT_BYTE(a,v) _RamWrite(--a, v)
#define PUT_BYTE_PP(a,v) PUT_BYTE(a++, v)
#define PUT_BYTE_MM(a,v) PUT_BYTE(a--, v)
#define MM_PUT_BYTE(a,v) PUT_BYTE(--a, v)

#define PUSH(x) do { \
MM_PUT_BYTE(SP, (x) >> 8); \
Expand Down

0 comments on commit f615a25

Please sign in to comment.