mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 12:05:57 +02:00
+ added DebugWriteHexWord and DebugWriteHexLongWord
git-svn-id: branches/wasm@48296 -
This commit is contained in:
parent
61ba4869ae
commit
bc0d510ee2
@ -53,6 +53,8 @@ procedure DebugWriteLn(const P: PChar);
|
|||||||
procedure DebugWriteChar(Ch: Char);
|
procedure DebugWriteChar(Ch: Char);
|
||||||
procedure DebugWriteHexDigit(d: Byte);
|
procedure DebugWriteHexDigit(d: Byte);
|
||||||
procedure DebugWriteHexByte(b: Byte);
|
procedure DebugWriteHexByte(b: Byte);
|
||||||
|
procedure DebugWriteHexWord(w: Word);
|
||||||
|
procedure DebugWriteHexLongWord(lw: Word);
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
@ -168,6 +170,18 @@ begin
|
|||||||
DebugWriteHexDigit(b and 15);
|
DebugWriteHexDigit(b and 15);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure DebugWriteHexWord(w: Word);
|
||||||
|
begin
|
||||||
|
DebugWriteHexByte(w shr 8);
|
||||||
|
DebugWriteHexByte(Byte(w));
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure DebugWriteHexLongWord(lw: Word);
|
||||||
|
begin
|
||||||
|
DebugWriteHexWord(lw shr 16);
|
||||||
|
DebugWriteHexWord(Word(lw));
|
||||||
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
DebugWriteLn('System unit initialization start');
|
DebugWriteLn('System unit initialization start');
|
||||||
{ To be set if this is a GUI or console application }
|
{ To be set if this is a GUI or console application }
|
||||||
|
Loading…
Reference in New Issue
Block a user