-
Notifications
You must be signed in to change notification settings - Fork 1
/
tzxblock27.inc
46 lines (35 loc) · 996 Bytes
/
tzxblock27.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright 2022-2024 Zoran Vučenović
// SPDX-License-Identifier: Apache-2.0
{$ifdef tzx_header_section}
TTzxBlock27 = class (TTzxBlock)
protected
function CheckReturnFromCallSequence: Boolean; override;
public
class function GetBlockId: DWord; override;
{returns whole block length, without id byte}
function GetBlockLength: Integer; override;
function LoadBlock(const {%H-}Stream: TStream): Boolean; override;
class function GetBlockDescription: String; override;
end;
{$else}
function TTzxBlock27.CheckReturnFromCallSequence: Boolean;
begin
Result := True;
end;
class function {TTzxPlayer.}TTzxBlock27.GetBlockId: DWord;
begin
Result := $27;
end;
function {TTzxPlayer.}TTzxBlock27.GetBlockLength: Integer;
begin
Result := 0;
end;
function {TTzxPlayer.}TTzxBlock27.LoadBlock(const Stream: TStream): Boolean;
begin
Result := True;
end;
class function {TTzxPlayer.}TTzxBlock27.GetBlockDescription: String;
begin
Result := 'Return from sequence';
end;
{$endif}