Mod; Mode - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

MOD
<argument> MOD <argument>
PRINT 10 MOD 3
1
PRINT 10 MOD 5
o
OPERATOR: Returns the remainder after dividing the first <argument> by the
second <argument> and removing any integer component - MODulus.
Associated keywords:
none
MODE
MOD E <integer expression>
10 m=m+1:IF m>2 THEN m=0
20 MODE m
30 PRINT "this is mode";m
40 PRINT "now press a key"
50
IF
INKEY$='"' THEN 50 ELSE 10
run
COMMAND: Changes the screen mode (0,1 or 2), and clears the screen to ink 0 (which
may not be the current paper ink). All text and graphics windows are reset to the
whole screen, and text and graphics cursors are homed to their respective origins.
Associated keywords: 0
RIG IN, WIN
DO
W
Chapter 3 Page 46
Complete List of Keywords

Advertisement

Table of Contents
loading

Table of Contents

Save PDF