Key words are printed in uppercase when the program is output with "list". But entering code is usually done in lowercase.
line 10: screen mode 0 is used (16 colours; 20x25 characters)
lines 20/30: set up colour palette; note that multiple instructions can be combined on a line
lines 40 to 70: a "for" loop over i
line 50: set the paper (background) colour to i
line 60: print 40 spaces (= 2 lines); space$ is a built-in function that returns a string
When the program ends, the "Ready" prompt is white-on-black because the current foreground (pen) colour, which is 1, had been set to white ("ink 1,26"). The background colour is 8 after the loop and "ink 8,0" had set that to black previously. See File:Amstrad CPC ink numbers.png for a chart of Amstrad ink numbers.
లైసెన్సింగ్
నేను, ఈ కృతి యొక్క కాపీహక్కుదారుని, దీన్ని ఈ లైసెన్సు క్రింద ఇందుమూలముగా ప్రచురిస్తున్నాను:
ఈ కృతితో సంబంధమున్న వ్యక్తి తనకు ప్రపంచవ్యాప్తంగా కాపీహక్కుల చట్టం క్రింద ఈ కృతిపై ఉన్న అన్ని హక్కులని మరియు ఈ కృతిలో తనకి ఉన్న సంబంధిత న్యాయపరమైన హక్కులని, చట్టం అనుమతించిన మేరకు, వదులుకుని ఈ కృతిని కామన్స్కి అంకితమిచ్చారు. CC0 క్రింద ఉన్న కృతులకు ఆపాందింపు అవసరం లేదు. కృతిని ఉటంకించేప్పుడు, కృతికర్త యొక్క ఆమోదాన్ని మీరు అంతర్నిహితంగా సూచించకూడదు.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse
Captions
Add a one-line explanation of what this file represents