diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-08-26 00:45:29 +0200 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-08-26 00:45:29 +0200 |
commit | 20641167a5b5d830d91c91e54983ab0aca84f86c (patch) | |
tree | d84465212af3a9b5dae9480bf784324a30dfc18d /qtmips_gui/samples/template.S | |
parent | 679ffb09d45bc86d8fb98439f7488924070fc7e8 (diff) | |
download | qtmips-20641167a5b5d830d91c91e54983ab0aca84f86c.tar.gz qtmips-20641167a5b5d830d91c91e54983ab0aca84f86c.tar.bz2 qtmips-20641167a5b5d830d91c91e54983ab0aca84f86c.zip |
Use #pragma in examples to lower initial learning curve.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui/samples/template.S')
-rw-r--r-- | qtmips_gui/samples/template.S | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qtmips_gui/samples/template.S b/qtmips_gui/samples/template.S index 58de4a3..a532e13 100644 --- a/qtmips_gui/samples/template.S +++ b/qtmips_gui/samples/template.S @@ -10,6 +10,11 @@ // work: http://www.pikron.com/ // license: public domain +// Directives to make interresting windows visible +#pragma qtmips show terminal +#pragma qtmips show registers +#pragma qtmips show memory + .globl _start .globl __start .set noreorder @@ -107,3 +112,6 @@ end_char: break // stop continuous execution data_1: .word 1, 2, 3, 4 // example how to fill data words text_1: .asciz "Hello word.\n" // store zero terminated ASCII text + +// if whole source compile is OK the switch to core tab +#pragma qtmips tab core |