2019-06-23 12:40:18 +02:00
|
|
|
# The OS/K Team licenses this file to you under the MIT license.
|
|
|
|
# See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------#
|
|
|
|
# I/O instructions #
|
|
|
|
#---------------------------------------------------------------------------#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Send a character to standard output (PRN)
|
|
|
|
#
|
|
|
|
prn rim
|
|
|
|
|
2019-07-02 20:13:05 +02:00
|
|
|
#
|
|
|
|
# Print a string to standard output (PRN)
|
|
|
|
#
|
|
|
|
# COMPARE([%1], 0)
|
|
|
|
#
|
|
|
|
# IF (ZF == 0) THEN
|
|
|
|
# PRN([%1])
|
|
|
|
# IF (DF == 0) THEN
|
|
|
|
# %1 = %1 + 1
|
|
|
|
# ELSE
|
|
|
|
# %1 = %1 - 1
|
|
|
|
# FI
|
|
|
|
# FI
|
|
|
|
#
|
|
|
|
#
|
|
|
|
prns r
|
|
|
|
|
2019-06-23 12:40:18 +02:00
|
|
|
#
|
|
|
|
# Scan a character from standard input (SCAN)
|
|
|
|
#
|
2019-07-04 20:33:49 +02:00
|
|
|
scan r
|
2019-06-23 12:40:18 +02:00
|
|
|
|