|
Last change
on this file was 42, checked in by chronos, 2 years ago |
- Modified: Improved simple virtual machine.
|
|
File size:
396 bytes
|
| Line | |
|---|
| 1 | unit FormConsole;
|
|---|
| 2 |
|
|---|
| 3 | interface
|
|---|
| 4 |
|
|---|
| 5 | uses
|
|---|
| 6 | Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, Device;
|
|---|
| 7 |
|
|---|
| 8 | type
|
|---|
| 9 |
|
|---|
| 10 | { TFormConsole }
|
|---|
| 11 |
|
|---|
| 12 | TFormConsole = class(TFormDevice)
|
|---|
| 13 | Memo1: TMemo;
|
|---|
| 14 | public
|
|---|
| 15 | procedure ConsoleWrite(Data: Byte);
|
|---|
| 16 | end;
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 | implementation
|
|---|
| 20 |
|
|---|
| 21 | {$R *.lfm}
|
|---|
| 22 |
|
|---|
| 23 | procedure TFormConsole.ConsoleWrite(Data: Byte);
|
|---|
| 24 | begin
|
|---|
| 25 | Memo1.Lines.Text := Memo1.Lines.Text + Chr(Data);
|
|---|
| 26 | end;
|
|---|
| 27 |
|
|---|
| 28 | end.
|
|---|
| 29 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.