(nw) z8: fixed detection of stack type; jtc: fixed display of jtces88

This commit is contained in:
Robbbert 2018-09-13 17:32:40 +10:00
parent 79e605fde6
commit 80e50f455b
2 changed files with 5 additions and 5 deletions

View File

@ -523,7 +523,7 @@ uint8_t z8_device::get_intermediate_register(int offset)
void z8_device::stack_push_byte(uint8_t src)
{
if (register_read(Z8_REGISTER_P01M) & Z8_P01M_INTERNAL_STACK)
if (P01M & Z8_P01M_INTERNAL_STACK)
{
// SP <- SP - 1 (predecrement)
uint8_t sp = register_read(Z8_REGISTER_SPL) - 1;
@ -545,7 +545,7 @@ void z8_device::stack_push_byte(uint8_t src)
void z8_device::stack_push_word(uint16_t src)
{
if (register_read(Z8_REGISTER_P01M) & Z8_P01M_INTERNAL_STACK)
if (P01M & Z8_P01M_INTERNAL_STACK)
{
// SP <- SP - 2 (predecrement)
uint8_t sp = register_read(Z8_REGISTER_SPL) - 2;
@ -567,7 +567,7 @@ void z8_device::stack_push_word(uint16_t src)
uint8_t z8_device::stack_pop_byte()
{
if (register_read(Z8_REGISTER_P01M) & Z8_P01M_INTERNAL_STACK)
if (P01M & Z8_P01M_INTERNAL_STACK)
{
// @SP <- src
uint8_t sp = register_read(Z8_REGISTER_SPL);
@ -593,7 +593,7 @@ uint8_t z8_device::stack_pop_byte()
uint16_t z8_device::stack_pop_word()
{
if (register_read(Z8_REGISTER_P01M) & Z8_P01M_INTERNAL_STACK)
if (P01M & Z8_P01M_INTERNAL_STACK)
{
// @SP <- src
uint8_t sp = register_read(Z8_REGISTER_SPL);

View File

@ -605,7 +605,7 @@ uint32_t jtc_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, c
for (x = 0; x < 8; x++)
{
int color = BIT(data, x);
int color = BIT(data, 7-x);
bitmap.pix16(y, (sx * 8) + x) = color;
}
}