mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 03:30:15 +02:00
* fix encoding of ash_savereg and ash_savereg_x
This commit is contained in:
parent
bc03b48632
commit
b7afb6237f
@ -278,13 +278,13 @@ unit agcpugas;
|
||||
begin
|
||||
check_offset(seh.data.offset,504);
|
||||
check_reg(seh.data.reg,R_INTREGISTER,min_int_reg);
|
||||
writeword($C000 or ((getsupreg(seh.data.reg)-min_int_reg) shl 6) or (seh.data.offset shr 3));
|
||||
writeword($D000 or ((getsupreg(seh.data.reg)-min_int_reg) shl 6) or (seh.data.offset shr 3));
|
||||
end;
|
||||
ash_savereg_x:
|
||||
begin
|
||||
check_offset(seh.data.offset,256);
|
||||
check_reg(seh.data.reg,R_INTREGISTER,min_int_reg);
|
||||
writeword($C400 or ((getsupreg(seh.data.reg)-min_int_reg) shl 5) or ((seh.data.offset shr 3)-1));
|
||||
writeword($D400 or ((getsupreg(seh.data.reg)-min_int_reg) shl 5) or ((seh.data.offset shr 3)-1));
|
||||
end;
|
||||
ash_saveregp:
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user