mirror of
https://github.com/irmen/prog8.git
synced 2024-11-26 11:49:22 +00:00
code style
This commit is contained in:
parent
c282b4cb9f
commit
151dcfdef9
@ -5,39 +5,14 @@
|
||||
|
||||
main {
|
||||
|
||||
str planet_name = "12345678"
|
||||
struct Planet {
|
||||
ubyte x
|
||||
ubyte y
|
||||
str name
|
||||
}
|
||||
sub start() {
|
||||
|
||||
uword[] warray = [1,2,3,4,5]
|
||||
|
||||
uword sums
|
||||
ubyte ii
|
||||
uword ww
|
||||
uword wptr = &warray
|
||||
ubyte wmap
|
||||
|
||||
ii = 2
|
||||
|
||||
wmap = %11110000
|
||||
wmap >>= 3
|
||||
txt.print_ubbin(wmap, 1)
|
||||
txt.chrout('\n')
|
||||
wmap <<= 3
|
||||
txt.print_ubbin(wmap, 1)
|
||||
txt.chrout('\n')
|
||||
|
||||
wmap = 9
|
||||
wmap *= 17
|
||||
txt.print_ub(wmap)
|
||||
txt.chrout('\n')
|
||||
wmap /= 17
|
||||
txt.print_ub(wmap)
|
||||
txt.chrout('\n')
|
||||
wmap = 211
|
||||
wmap %= 40
|
||||
txt.print_ub(wmap)
|
||||
txt.chrout('\n')
|
||||
txt.chrout('\n')
|
||||
Planet p1
|
||||
|
||||
txt.print(planet_name)
|
||||
txt.chrout('\n')
|
||||
|
Loading…
Reference in New Issue
Block a user