PFW-1386 Address should accept hexidecimal values

Now these are equal:
M707 A255 C1
M707 A0xFF C1

Both address inputs are interpreted as FF
This commit is contained in:
Guðni Már Gilbert 2022-08-27 17:08:25 +00:00 committed by D.R.racer
parent ba7dae5c79
commit d78c575399
1 changed files with 2 additions and 2 deletions

View File

@ -8711,7 +8711,7 @@ Sigma_Exit:
if ( MMU2::mmu2.Enabled() )
{
if( code_seen('A') ) {
addr = code_value_uint8();
addr = uint8_t(strtol(strchr_pointer+1, NULL, 0));
}
if( code_seen('C') ) {
nrbytes = code_value_uint8();
@ -8742,7 +8742,7 @@ Sigma_Exit:
if ( MMU2::mmu2.Enabled() )
{
if( code_seen('A') ) {
addr = code_value_uint8();
addr = uint8_t(strtol(strchr_pointer+1, NULL, 0));
}
if( code_seen('X') ) {
data = code_value_uint8();