1
0
mirror of https://github.com/simh/simh.git synced 2026-02-13 03:15:25 +00:00

TT2500: Debugging and reduce type slice warnings.

- Debug: Output the character received, if printable.
- Eliminate type slicing warnings (uint32 -> uint16)
This commit is contained in:
B. Scott Michel
2024-04-15 09:58:11 -07:00
committed by Mark Pizzolato
parent 9f595c066c
commit b9553f672a
4 changed files with 8 additions and 7 deletions

View File

@@ -162,8 +162,8 @@ static uint16 cpu_ars (uint16 data, uint16 n)
{
uint32 sign = 0;
if (data & 0100000)
sign = 0177777 << 16;
return (data >> n) + (sign >> n);
sign = 0177777u << 16;
return (data >> n) + ((uint16) (sign >> n));
}
uint16 cpu_alu (uint16 insn, uint16 op, uint16 adata, uint16 bdata)