123456789101112131415161718192021222324252627282930313233343536 |
- {
- This file is part of the Free Pascal run time library.
- Copyright (c) 2020 by Free Pascal development team
- This file contains startup code for the ZX Spectrum
- See the file COPYING.FPC, included in this distribution,
- for details about the copyright.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- **********************************************************************}
- unit si_prc;
- {$SMARTLINK OFF}
- interface
- implementation
- var
- stktop: word; external name '__stktop';
- procedure PascalMain; external name 'PASCALMAIN';
- { this *must* always remain the first procedure with code in this unit }
- procedure _start; assembler; nostackframe; public name 'start';
- asm
- ld (stktop), sp
- jp PASCALMAIN
- end;
- end.
|