2019-06-21 22:25:28 +00:00
|
|
|
(label) @1
|
|
|
|
(label) @2
|
|
|
|
(label) @begin
|
|
|
|
(label) @end
|
2020-03-29 19:00:25 +00:00
|
|
|
(const nomodify byte*) BGCOL = (byte*) 53281
|
2019-10-13 22:51:15 +00:00
|
|
|
(const byte*) BITMAP = (byte*) 8192
|
2020-03-29 19:00:25 +00:00
|
|
|
(const nomodify byte) BLACK = (byte) 0
|
|
|
|
(const nomodify byte*) BORDERCOL = (byte*) 53280
|
|
|
|
(const nomodify byte*) CIA1_INTERRUPT = (byte*) 56333
|
|
|
|
(const nomodify byte) CIA_INTERRUPT_CLEAR = (byte) $7f
|
|
|
|
(const nomodify byte*) D011 = (byte*) 53265
|
|
|
|
(const nomodify byte*) D018 = (byte*) 53272
|
|
|
|
(const nomodify void()**) HARDWARE_IRQ = (void()**) 65534
|
|
|
|
(const nomodify byte*) IRQ_ENABLE = (byte*) 53274
|
|
|
|
(const nomodify byte) IRQ_RASTER = (byte) 1
|
|
|
|
(const nomodify byte*) IRQ_STATUS = (byte*) 53273
|
|
|
|
(const nomodify dword) PI2_u4f28 = (dword) $6487ed51
|
|
|
|
(const nomodify dword) PI_HALF_u4f28 = (dword) $1921fb54
|
|
|
|
(const nomodify dword) PI_u4f28 = (dword) $3243f6a9
|
|
|
|
(const nomodify byte*) PROCPORT = (byte*) 1
|
|
|
|
(const nomodify byte*) PROCPORT_DDR = (byte*) 0
|
|
|
|
(const nomodify byte) PROCPORT_DDR_MEMORY_MASK = (byte) 7
|
|
|
|
(const nomodify byte) PROCPORT_RAM_IO = (byte) 5
|
|
|
|
(const nomodify byte*) RASTER = (byte*) 53266
|
2019-10-13 22:51:15 +00:00
|
|
|
(const byte*) SCREEN = (byte*) 1024
|
2019-12-21 09:38:44 +00:00
|
|
|
(const signed word*) SINUS[(number) $200] = { fill( $200, 0) }
|
2019-10-13 22:51:15 +00:00
|
|
|
(const byte) SIZEOF_SIGNED_WORD = (byte) 2
|
2020-03-29 19:00:25 +00:00
|
|
|
(const nomodify byte) VIC_BMM = (byte) $20
|
|
|
|
(const nomodify byte*) VIC_CONTROL = (byte*) 53265
|
|
|
|
(const nomodify byte) VIC_DEN = (byte) $10
|
|
|
|
(const nomodify byte) VIC_RSEL = (byte) 8
|
|
|
|
(const nomodify byte) WHITE = (byte) 1
|
2019-06-21 22:25:28 +00:00
|
|
|
(void()) bitmap_clear((byte) bitmap_clear::bgcol , (byte) bitmap_clear::fgcol)
|
|
|
|
(label) bitmap_clear::@1
|
|
|
|
(label) bitmap_clear::@return
|
|
|
|
(byte) bitmap_clear::bgcol
|
|
|
|
(byte) bitmap_clear::col
|
2020-03-29 19:00:25 +00:00
|
|
|
(const byte) bitmap_clear::col#0 col = (const nomodify byte) WHITE*(byte) $10
|
2019-06-21 22:25:28 +00:00
|
|
|
(byte) bitmap_clear::fgcol
|
|
|
|
(byte*) bitmap_gfx
|
|
|
|
(void()) bitmap_init((byte*) bitmap_init::gfx , (byte*) bitmap_init::screen)
|
2020-03-22 21:26:39 +00:00
|
|
|
(byte~) bitmap_init::$4 reg byte a 2002.0
|
|
|
|
(byte~) bitmap_init::$5 reg byte a 2002.0
|
|
|
|
(byte~) bitmap_init::$6 reg byte a 2002.0
|
2020-03-22 23:10:07 +00:00
|
|
|
(byte~) bitmap_init::$7 zp[1]:32 500.5
|
2019-06-21 22:25:28 +00:00
|
|
|
(label) bitmap_init::@1
|
|
|
|
(label) bitmap_init::@2
|
|
|
|
(label) bitmap_init::@3
|
|
|
|
(label) bitmap_init::@4
|
|
|
|
(label) bitmap_init::@5
|
|
|
|
(label) bitmap_init::@6
|
|
|
|
(label) bitmap_init::@return
|
|
|
|
(byte) bitmap_init::bits
|
2020-03-22 21:26:39 +00:00
|
|
|
(byte) bitmap_init::bits#1 reg byte a 1001.0
|
|
|
|
(byte) bitmap_init::bits#3 reg byte a 1501.5
|
|
|
|
(byte) bitmap_init::bits#4 reg byte a 667.3333333333334
|
2019-06-21 22:25:28 +00:00
|
|
|
(byte*) bitmap_init::gfx
|
|
|
|
(byte*) bitmap_init::screen
|
|
|
|
(byte) bitmap_init::x
|
2020-03-22 21:26:39 +00:00
|
|
|
(byte) bitmap_init::x#1 reg byte x 1501.5
|
|
|
|
(byte) bitmap_init::x#2 reg byte x 500.5
|
2019-06-21 22:25:28 +00:00
|
|
|
(byte) bitmap_init::y
|
2020-03-22 21:26:39 +00:00
|
|
|
(byte) bitmap_init::y#1 reg byte x 1501.5
|
|
|
|
(byte) bitmap_init::y#2 reg byte x 500.5
|
2019-06-21 22:25:28 +00:00
|
|
|
(byte*) bitmap_init::yoffs
|
2020-03-22 23:10:07 +00:00
|
|
|
(byte*) bitmap_init::yoffs#1 yoffs zp[2]:15 2002.0
|
|
|
|
(byte*) bitmap_init::yoffs#2 yoffs zp[2]:15 625.625
|
|
|
|
(byte*) bitmap_init::yoffs#4 yoffs zp[2]:15 1001.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(void()) bitmap_plot((word) bitmap_plot::x , (byte) bitmap_plot::y)
|
2020-04-19 09:05:54 +00:00
|
|
|
(word~) bitmap_plot::$0 zp[2]:43 2002.0
|
|
|
|
(byte~) bitmap_plot::$1 reg byte x 2002.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(label) bitmap_plot::@return
|
|
|
|
(byte*) bitmap_plot::plotter
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) bitmap_plot::plotter#0 plotter zp[2]:37 500.5
|
|
|
|
(byte*) bitmap_plot::plotter#1 plotter zp[2]:37 1501.5
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) bitmap_plot::x
|
2020-04-19 09:05:54 +00:00
|
|
|
(word) bitmap_plot::x#0 x zp[2]:28 420.59999999999997
|
2019-06-21 22:25:28 +00:00
|
|
|
(byte) bitmap_plot::y
|
2020-04-19 09:05:54 +00:00
|
|
|
(byte) bitmap_plot::y#0 reg byte a 2103.0
|
2020-03-29 19:00:25 +00:00
|
|
|
(const to_nomodify byte*) bitmap_plot_bit[(number) $100] = { fill( $100, 0) }
|
|
|
|
(const to_nomodify byte*) bitmap_plot_yhi[(number) $100] = { fill( $100, 0) }
|
|
|
|
(const to_nomodify byte*) bitmap_plot_ylo[(number) $100] = { fill( $100, 0) }
|
2019-06-21 22:25:28 +00:00
|
|
|
(byte*) bitmap_screen
|
|
|
|
(dword()) div32u16u((dword) div32u16u::dividend , (word) div32u16u::divisor)
|
|
|
|
(label) div32u16u::@1
|
|
|
|
(label) div32u16u::@2
|
|
|
|
(label) div32u16u::@return
|
|
|
|
(dword) div32u16u::dividend
|
|
|
|
(word) div32u16u::divisor
|
|
|
|
(dword) div32u16u::quotient
|
|
|
|
(word) div32u16u::quotient_hi
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) div32u16u::quotient_hi#0 quotient_hi zp[2]:45 400.4
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) div32u16u::quotient_lo
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) div32u16u::quotient_lo#0 quotient_lo zp[2]:37 2002.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(dword) div32u16u::return
|
2020-03-22 23:10:07 +00:00
|
|
|
(dword) div32u16u::return#0 return zp[4]:33 367.33333333333337
|
|
|
|
(dword) div32u16u::return#2 return zp[4]:33 202.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(word()) divr16u((word) divr16u::dividend , (word) divr16u::divisor , (word) divr16u::rem)
|
2020-03-22 21:26:39 +00:00
|
|
|
(byte~) divr16u::$1 reg byte a 200002.0
|
|
|
|
(byte~) divr16u::$2 reg byte a 200002.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(label) divr16u::@1
|
|
|
|
(label) divr16u::@2
|
|
|
|
(label) divr16u::@3
|
|
|
|
(label) divr16u::@4
|
|
|
|
(label) divr16u::@5
|
|
|
|
(label) divr16u::@6
|
|
|
|
(label) divr16u::@return
|
|
|
|
(word) divr16u::dividend
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) divr16u::dividend#0 dividend zp[2]:30 25000.25
|
|
|
|
(word) divr16u::dividend#3 dividend zp[2]:30 44286.28571428572
|
|
|
|
(word) divr16u::dividend#5 dividend zp[2]:30 10001.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) divr16u::divisor
|
|
|
|
(byte) divr16u::i
|
2020-03-22 21:26:39 +00:00
|
|
|
(byte) divr16u::i#1 reg byte x 150001.5
|
|
|
|
(byte) divr16u::i#2 reg byte x 15384.76923076923
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) divr16u::quotient
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) divr16u::quotient#1 quotient zp[2]:37 150001.5
|
|
|
|
(word) divr16u::quotient#2 quotient zp[2]:37 100001.0
|
|
|
|
(word) divr16u::quotient#3 quotient zp[2]:37 25000.25
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) divr16u::rem
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) divr16u::rem#0 rem zp[2]:25 75000.75
|
|
|
|
(word) divr16u::rem#1 rem zp[2]:25 200002.0
|
|
|
|
(word) divr16u::rem#10 rem zp[2]:25 11002.0
|
|
|
|
(word) divr16u::rem#11 rem zp[2]:25 103334.66666666667
|
|
|
|
(word) divr16u::rem#2 rem zp[2]:25 200002.0
|
|
|
|
(word) divr16u::rem#4 rem zp[2]:25 2002.0
|
|
|
|
(word) divr16u::rem#5 rem zp[2]:25 210003.0
|
|
|
|
(word) divr16u::rem#6 rem zp[2]:25 100001.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) divr16u::return
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) divr16u::return#0 return zp[2]:37 43143.57142857143
|
|
|
|
(word) divr16u::return#2 return zp[2]:37 2002.0
|
|
|
|
(word) divr16u::return#3 return zp[2]:37 2002.0
|
2020-03-29 19:00:25 +00:00
|
|
|
(volatile byte) frame_cnt loadstore zp[1]:27 3.8181818181818175
|
2019-06-21 22:25:28 +00:00
|
|
|
(void()) init_irq()
|
|
|
|
(label) init_irq::@return
|
|
|
|
interrupt(HARDWARE_CLOBBER)(void()) irq()
|
|
|
|
(label) irq::@1
|
|
|
|
(label) irq::@2
|
|
|
|
(label) irq::@return
|
|
|
|
(void()) main()
|
2020-04-19 09:05:54 +00:00
|
|
|
(signed word~) main::$11 zp[2]:30 202.0
|
|
|
|
(word~) main::$26 zp[2]:9 202.0
|
|
|
|
(word~) main::$27 zp[2]:9 202.0
|
|
|
|
(word~) main::$28 zp[2]:28 101.0
|
|
|
|
(word~) main::$29 zp[2]:30 101.0
|
|
|
|
(signed word*~) main::$30 zp[2]:9 202.0
|
|
|
|
(signed word*~) main::$31 zp[2]:9 202.0
|
|
|
|
(signed word~) main::$7 zp[2]:28 202.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(label) main::@1
|
|
|
|
(label) main::@10
|
|
|
|
(label) main::@11
|
|
|
|
(label) main::@12
|
|
|
|
(label) main::@13
|
|
|
|
(label) main::@14
|
2019-06-22 08:36:13 +00:00
|
|
|
(label) main::@15
|
|
|
|
(label) main::@16
|
|
|
|
(label) main::@17
|
2019-06-21 22:25:28 +00:00
|
|
|
(label) main::@2
|
|
|
|
(label) main::@3
|
|
|
|
(label) main::@4
|
|
|
|
(label) main::@5
|
|
|
|
(label) main::@6
|
|
|
|
(label) main::@7
|
|
|
|
(label) main::@8
|
|
|
|
(label) main::@9
|
|
|
|
(signed word) main::cos_x
|
2020-03-22 21:26:39 +00:00
|
|
|
(signed word) main::cos_x#0 cos_x zp[2]:9 101.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) main::idx_x
|
2020-03-22 21:26:39 +00:00
|
|
|
(word) main::idx_x#1 idx_x zp[2]:2 101.0
|
|
|
|
(word) main::idx_x#10 idx_x zp[2]:2 27.545454545454547
|
|
|
|
(word) main::idx_x#11 idx_x zp[2]:2 11.222222222222223
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) main::idx_y
|
2020-03-22 21:26:39 +00:00
|
|
|
(word) main::idx_y#1 idx_y zp[2]:6 101.0
|
|
|
|
(word) main::idx_y#10 idx_y zp[2]:6 28.857142857142858
|
|
|
|
(word) main::idx_y#3 idx_y zp[2]:6 9.774193548387098
|
2019-06-21 22:25:28 +00:00
|
|
|
(signed word) main::r
|
2020-03-22 21:26:39 +00:00
|
|
|
(signed word) main::r#1 r zp[2]:4 50.5
|
|
|
|
(signed word) main::r#10 r zp[2]:4 11.542857142857143
|
2019-06-21 22:25:28 +00:00
|
|
|
(byte) main::r_add
|
2020-03-22 21:26:39 +00:00
|
|
|
(byte) main::r_add#1 r_add zp[1]:8 202.0
|
|
|
|
(byte) main::r_add#10 r_add zp[1]:8 18.60526315789474
|
|
|
|
(byte) main::r_add#12 r_add zp[1]:8 151.5
|
2019-06-21 22:25:28 +00:00
|
|
|
(signed word) main::sin_y
|
2020-03-22 21:26:39 +00:00
|
|
|
(signed word) main::sin_y#0 sin_y zp[2]:9 101.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(label) main::toD0181
|
|
|
|
(byte*) main::toD0181_gfx
|
|
|
|
(byte) main::toD0181_return
|
2019-09-29 20:36:00 +00:00
|
|
|
(const byte) main::toD0181_return#0 toD0181_return = >(word)(const byte*) SCREEN&(word) $3fff*(byte) 4|>(word)(const byte*) BITMAP/(byte) 4&(byte) $f
|
2019-06-21 22:25:28 +00:00
|
|
|
(byte*) main::toD0181_screen
|
|
|
|
(word) main::x
|
2020-04-19 09:05:54 +00:00
|
|
|
(signed word) main::x#0 x zp[2]:28 8.416666666666666
|
2019-06-21 22:25:28 +00:00
|
|
|
(signed dword) main::xpos
|
2020-03-22 21:26:39 +00:00
|
|
|
(signed dword) main::xpos#0 xpos zp[4]:11 202.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) main::y
|
2020-04-19 09:05:54 +00:00
|
|
|
(signed word) main::y#0 y zp[2]:30 50.5
|
2019-06-21 22:25:28 +00:00
|
|
|
(signed dword) main::ypos
|
2020-03-22 21:26:39 +00:00
|
|
|
(signed dword) main::ypos#0 ypos zp[4]:11 202.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(void*()) memset((void*) memset::str , (byte) memset::c , (word) memset::num)
|
|
|
|
(label) memset::@1
|
2019-07-11 04:31:29 +00:00
|
|
|
(label) memset::@2
|
2019-08-07 09:27:55 +00:00
|
|
|
(label) memset::@3
|
2019-06-21 22:25:28 +00:00
|
|
|
(label) memset::@return
|
|
|
|
(byte) memset::c
|
2020-03-22 21:26:39 +00:00
|
|
|
(byte) memset::c#4 reg byte x 1250.125
|
2019-06-21 22:25:28 +00:00
|
|
|
(byte*) memset::dst
|
2020-03-22 23:10:07 +00:00
|
|
|
(byte*) memset::dst#1 dst zp[2]:37 20002.0
|
|
|
|
(byte*) memset::dst#2 dst zp[2]:37 13668.333333333332
|
|
|
|
(byte*) memset::dst#4 dst zp[2]:37 2002.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(byte*) memset::end
|
2020-03-22 23:10:07 +00:00
|
|
|
(byte*) memset::end#0 end zp[2]:30 1833.6666666666665
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) memset::num
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) memset::num#2 num zp[2]:30 1001.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(void*) memset::return
|
|
|
|
(void*) memset::str
|
2020-03-08 22:26:49 +00:00
|
|
|
(void*) memset::str#3 str zp[2]:37
|
2019-06-21 22:25:28 +00:00
|
|
|
(signed dword()) mul16s((signed word) mul16s::a , (signed word) mul16s::b)
|
2020-04-19 09:05:54 +00:00
|
|
|
(word~) mul16s::$11 zp[2]:43 20002.0
|
|
|
|
(word~) mul16s::$12 zp[2]:37 20002.0
|
|
|
|
(word~) mul16s::$6 zp[2]:43 20002.0
|
|
|
|
(word~) mul16s::$9 zp[2]:37 20002.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(label) mul16s::@1
|
|
|
|
(label) mul16s::@2
|
|
|
|
(label) mul16s::@3
|
|
|
|
(label) mul16s::@4
|
|
|
|
(label) mul16s::@5
|
|
|
|
(label) mul16s::@return
|
|
|
|
(signed word) mul16s::a
|
2020-03-22 23:10:07 +00:00
|
|
|
(signed word) mul16s::a#0 a zp[2]:4 2002.0
|
|
|
|
(signed word) mul16s::a#1 a zp[2]:4 101.0
|
|
|
|
(signed word) mul16s::a#2 a zp[2]:4 101.0
|
|
|
|
(signed word) mul16s::a#3 a zp[2]:4 861.8461538461538
|
2019-06-21 22:25:28 +00:00
|
|
|
(signed word) mul16s::b
|
2020-03-22 21:26:39 +00:00
|
|
|
(signed word) mul16s::b#1 b zp[2]:9 202.0
|
|
|
|
(signed word) mul16s::b#2 b zp[2]:9 202.0
|
|
|
|
(signed word) mul16s::b#3 b zp[2]:9 927.5454545454545
|
2019-06-21 22:25:28 +00:00
|
|
|
(dword) mul16s::m
|
2020-03-22 21:26:39 +00:00
|
|
|
(dword) mul16s::m#0 m zp[4]:11 10001.0
|
|
|
|
(dword) mul16s::m#1 m zp[4]:11 20002.0
|
|
|
|
(dword) mul16s::m#2 m zp[4]:11 20002.0
|
|
|
|
(dword) mul16s::m#4 m zp[4]:11 20002.0
|
|
|
|
(dword) mul16s::m#5 m zp[4]:11 12501.25
|
2019-06-21 22:25:28 +00:00
|
|
|
(signed dword) mul16s::return
|
2020-03-22 21:26:39 +00:00
|
|
|
(signed dword) mul16s::return#0 return zp[4]:11 2240.8
|
|
|
|
(signed dword) mul16s::return#2 return zp[4]:11 2002.0
|
|
|
|
(signed dword) mul16s::return#3 return zp[4]:11 202.0
|
|
|
|
(signed dword) mul16s::return#4 return zp[4]:11 202.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(dword()) mul16u((word) mul16u::a , (word) mul16u::b)
|
2020-03-22 21:26:39 +00:00
|
|
|
(byte~) mul16u::$1 reg byte a 2.00000002E8
|
2019-06-21 22:25:28 +00:00
|
|
|
(label) mul16u::@1
|
|
|
|
(label) mul16u::@2
|
|
|
|
(label) mul16u::@3
|
|
|
|
(label) mul16u::@4
|
|
|
|
(label) mul16u::@return
|
|
|
|
(word) mul16u::a
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) mul16u::a#0 a zp[2]:37 1.00000001E8
|
|
|
|
(word) mul16u::a#1 a zp[2]:37 10001.0
|
|
|
|
(word) mul16u::a#2 a zp[2]:37 100001.0
|
|
|
|
(word) mul16u::a#3 a zp[2]:37 6.683333416666667E7
|
|
|
|
(word) mul16u::a#6 a zp[2]:37 555001.5
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) mul16u::b
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) mul16u::b#0 b zp[2]:30 20002.0
|
|
|
|
(word) mul16u::b#1 b zp[2]:30 200002.0
|
|
|
|
(word) mul16u::b#2 b zp[2]:30 110002.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(dword) mul16u::mb
|
2020-03-22 23:10:07 +00:00
|
|
|
(dword) mul16u::mb#0 mb zp[4]:21 2000002.0
|
|
|
|
(dword) mul16u::mb#1 mb zp[4]:21 2.00000002E8
|
|
|
|
(dword) mul16u::mb#2 mb zp[4]:21 4.300000057142857E7
|
2019-06-21 22:25:28 +00:00
|
|
|
(dword) mul16u::res
|
2020-03-22 21:26:39 +00:00
|
|
|
(dword) mul16u::res#1 res zp[4]:11 2.00000002E8
|
|
|
|
(dword) mul16u::res#2 res zp[4]:11 4.287285785714286E7
|
|
|
|
(dword) mul16u::res#6 res zp[4]:11 1.00000001E8
|
2019-06-21 22:25:28 +00:00
|
|
|
(dword) mul16u::return
|
2020-03-22 21:26:39 +00:00
|
|
|
(dword) mul16u::return#2 return zp[4]:11 20002.0
|
|
|
|
(dword) mul16u::return#3 return zp[4]:11 200002.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(word()) mulu16_sel((word) mulu16_sel::v1 , (word) mulu16_sel::v2 , (byte) mulu16_sel::select)
|
2020-03-22 21:26:39 +00:00
|
|
|
(dword~) mulu16_sel::$0 zp[4]:11 200002.0
|
|
|
|
(dword~) mulu16_sel::$1 zp[4]:11 200002.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(label) mulu16_sel::@1
|
|
|
|
(label) mulu16_sel::@return
|
|
|
|
(word) mulu16_sel::return
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) mulu16_sel::return#0 return zp[2]:43 20002.0
|
|
|
|
(word) mulu16_sel::return#1 return_1 zp[2]:25 20002.0
|
|
|
|
(word) mulu16_sel::return#10 return_1 zp[2]:25 20002.0
|
|
|
|
(word) mulu16_sel::return#11 return zp[2]:43 20002.0
|
|
|
|
(word) mulu16_sel::return#12 return zp[2]:43 21429.428571428572
|
|
|
|
(word) mulu16_sel::return#2 return zp[2]:43 20002.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(byte) mulu16_sel::select
|
2020-03-22 21:26:39 +00:00
|
|
|
(byte) mulu16_sel::select#5 reg byte x 16666.833333333332
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) mulu16_sel::v1
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) mulu16_sel::v1#0 v1 zp[2]:25 10001.0
|
|
|
|
(word) mulu16_sel::v1#1 v1 zp[2]:25 10001.0
|
|
|
|
(word) mulu16_sel::v1#2 v1 zp[2]:25 20002.0
|
|
|
|
(word) mulu16_sel::v1#3 v1 zp[2]:25 10001.0
|
|
|
|
(word) mulu16_sel::v1#4 v1 zp[2]:25 10001.0
|
|
|
|
(word) mulu16_sel::v1#5 v1 zp[2]:25 150006.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) mulu16_sel::v2
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) mulu16_sel::v2#0 v2 zp[2]:30 20002.0
|
|
|
|
(word) mulu16_sel::v2#1 v2 zp[2]:30 20002.0
|
|
|
|
(word) mulu16_sel::v2#3 v2 zp[2]:30 20002.0
|
|
|
|
(word) mulu16_sel::v2#4 v2 zp[2]:30 20002.0
|
|
|
|
(word) mulu16_sel::v2#5 v2 zp[2]:30 70002.5
|
2019-12-21 09:38:44 +00:00
|
|
|
(const byte*) plots_per_frame[(number) $100] = { fill( $100, 0) }
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) rem16u
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) rem16u#1 rem16u zp[2]:25 2200.4
|
2019-06-21 22:25:28 +00:00
|
|
|
(signed word()) sin16s((dword) sin16s::x)
|
2020-03-22 23:10:07 +00:00
|
|
|
(dword~) sin16s::$4 zp[4]:39 20002.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(label) sin16s::@1
|
|
|
|
(label) sin16s::@10
|
|
|
|
(label) sin16s::@11
|
|
|
|
(label) sin16s::@12
|
|
|
|
(label) sin16s::@2
|
|
|
|
(label) sin16s::@3
|
|
|
|
(label) sin16s::@4
|
|
|
|
(label) sin16s::@5
|
|
|
|
(label) sin16s::@6
|
|
|
|
(label) sin16s::@7
|
|
|
|
(label) sin16s::@8
|
|
|
|
(label) sin16s::@9
|
|
|
|
(label) sin16s::@return
|
|
|
|
(byte) sin16s::isUpper
|
2020-03-22 21:26:39 +00:00
|
|
|
(byte) sin16s::isUpper#2 reg byte y 303.06060606060606
|
2019-06-21 22:25:28 +00:00
|
|
|
(signed word) sin16s::return
|
2020-03-22 23:10:07 +00:00
|
|
|
(signed word) sin16s::return#0 return zp[2]:4 2002.0
|
|
|
|
(signed word) sin16s::return#1 return zp[2]:4 7001.0
|
|
|
|
(signed word) sin16s::return#5 return zp[2]:4 20002.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(signed word) sin16s::sinx
|
2020-03-22 23:10:07 +00:00
|
|
|
(signed word) sin16s::sinx#1 sinx zp[2]:4 20002.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) sin16s::usinx
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) sin16s::usinx#0 usinx zp[2]:4 1666.8333333333333
|
|
|
|
(word) sin16s::usinx#1 usinx zp[2]:4 5000.5
|
2019-06-21 22:25:28 +00:00
|
|
|
(dword) sin16s::x
|
2020-03-22 23:10:07 +00:00
|
|
|
(dword) sin16s::x#0 x zp[4]:21 15502.0
|
|
|
|
(dword) sin16s::x#1 x zp[4]:21 20002.0
|
|
|
|
(dword) sin16s::x#2 x zp[4]:21 20002.0
|
|
|
|
(dword) sin16s::x#4 x zp[4]:21 25002.5
|
|
|
|
(dword) sin16s::x#6 x zp[4]:21 30003.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) sin16s::x1
|
2020-03-22 21:26:39 +00:00
|
|
|
(word) sin16s::x1#0 x1 zp[2]:45 3182.1363636363635
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) sin16s::x2
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) sin16s::x2#0 x2 zp[2]:25 20002.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) sin16s::x3
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) sin16s::x3#0 x3 zp[2]:25 5000.5
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) sin16s::x3_6
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) sin16s::x3_6#0 x3_6 zp[2]:43 20002.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) sin16s::x4
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) sin16s::x4#0 x4 zp[2]:25 20002.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) sin16s::x5
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) sin16s::x5#0 x5 zp[2]:43 20002.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) sin16s::x5_128
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) sin16s::x5_128#0 x5_128 zp[2]:43 20002.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(void()) sin16s_gen2((signed word*) sin16s_gen2::sintab , (word) sin16s_gen2::wavelength , (signed word) sin16s_gen2::min , (signed word) sin16s_gen2::max)
|
2020-03-22 21:26:39 +00:00
|
|
|
(signed dword~) sin16s_gen2::$6 zp[4]:11 2002.0
|
2020-04-19 09:05:54 +00:00
|
|
|
(word~) sin16s_gen2::$8 zp[2]:37 1001.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(label) sin16s_gen2::@1
|
|
|
|
(label) sin16s_gen2::@2
|
|
|
|
(label) sin16s_gen2::@3
|
|
|
|
(label) sin16s_gen2::@4
|
2019-08-07 09:27:55 +00:00
|
|
|
(label) sin16s_gen2::@5
|
2019-06-21 22:25:28 +00:00
|
|
|
(label) sin16s_gen2::@return
|
|
|
|
(signed word) sin16s_gen2::ampl
|
|
|
|
(const signed word) sin16s_gen2::ampl#0 ampl = (const signed word) sin16s_gen2::max#0-(const signed word) sin16s_gen2::min#0
|
|
|
|
(word) sin16s_gen2::i
|
2020-03-22 23:10:07 +00:00
|
|
|
(word) sin16s_gen2::i#1 i zp[2]:15 2002.0
|
|
|
|
(word) sin16s_gen2::i#2 i zp[2]:15 231.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(signed word) sin16s_gen2::max
|
|
|
|
(const signed word) sin16s_gen2::max#0 max = (signed word) $1001
|
|
|
|
(signed word) sin16s_gen2::min
|
|
|
|
(const signed word) sin16s_gen2::min#0 min = (signed word) -$1001
|
|
|
|
(signed word) sin16s_gen2::offs
|
|
|
|
(signed word*) sin16s_gen2::sintab
|
2020-03-22 23:10:07 +00:00
|
|
|
(signed word*) sin16s_gen2::sintab#0 sintab zp[2]:28 667.3333333333334
|
|
|
|
(signed word*) sin16s_gen2::sintab#2 sintab zp[2]:28 273.0
|
2019-06-21 22:25:28 +00:00
|
|
|
(dword) sin16s_gen2::step
|
2020-03-22 23:10:07 +00:00
|
|
|
(dword) sin16s_gen2::step#0 step zp[4]:33 73.46666666666667
|
2019-06-21 22:25:28 +00:00
|
|
|
(word) sin16s_gen2::wavelength
|
|
|
|
(const word) sin16s_gen2::wavelength#0 wavelength = (word) $200
|
|
|
|
(dword) sin16s_gen2::x
|
2020-03-22 23:10:07 +00:00
|
|
|
(dword) sin16s_gen2::x#1 x zp[4]:17 1001.0
|
|
|
|
(dword) sin16s_gen2::x#2 x zp[4]:17 250.25
|
2019-06-21 22:25:28 +00:00
|
|
|
|
2020-03-08 22:26:49 +00:00
|
|
|
zp[2]:2 [ main::idx_x#11 main::idx_x#10 main::idx_x#1 ]
|
|
|
|
zp[2]:4 [ main::r#10 main::r#1 mul16s::a#3 mul16s::a#1 mul16s::a#2 mul16s::a#0 sin16s::return#1 sin16s::return#5 sin16s::sinx#1 sin16s::usinx#1 sin16s::return#0 sin16s::usinx#0 ]
|
|
|
|
zp[2]:6 [ main::idx_y#3 main::idx_y#10 main::idx_y#1 ]
|
|
|
|
zp[1]:8 [ main::r_add#10 main::r_add#12 main::r_add#1 ]
|
2020-04-19 09:05:54 +00:00
|
|
|
zp[2]:9 [ mul16s::b#3 mul16s::b#1 mul16s::b#2 main::cos_x#0 main::sin_y#0 main::$26 main::$30 main::$27 main::$31 ]
|
2020-03-08 22:26:49 +00:00
|
|
|
zp[4]:11 [ mul16s::m#4 mul16s::m#5 mul16s::m#1 mul16s::m#0 mul16s::m#2 mul16u::return#2 mul16s::return#0 mul16u::res#2 mul16u::res#6 mul16u::res#1 mul16u::return#3 mul16s::return#3 main::xpos#0 mul16s::return#4 main::ypos#0 mul16s::return#2 sin16s_gen2::$6 mulu16_sel::$0 mulu16_sel::$1 ]
|
2019-08-07 09:27:55 +00:00
|
|
|
reg byte x [ memset::c#4 ]
|
2019-06-21 22:25:28 +00:00
|
|
|
reg byte a [ bitmap_init::bits#3 bitmap_init::bits#4 bitmap_init::bits#1 ]
|
|
|
|
reg byte x [ bitmap_init::x#2 bitmap_init::x#1 ]
|
|
|
|
reg byte x [ bitmap_init::y#2 bitmap_init::y#1 ]
|
2020-03-08 22:26:49 +00:00
|
|
|
zp[2]:15 [ sin16s_gen2::i#2 sin16s_gen2::i#1 bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ]
|
|
|
|
zp[4]:17 [ sin16s_gen2::x#2 sin16s_gen2::x#1 ]
|
2019-10-20 09:41:56 +00:00
|
|
|
reg byte y [ sin16s::isUpper#2 ]
|
2020-03-08 22:26:49 +00:00
|
|
|
zp[4]:21 [ sin16s::x#6 sin16s::x#4 sin16s::x#0 sin16s::x#1 sin16s::x#2 mul16u::mb#2 mul16u::mb#0 mul16u::mb#1 ]
|
2019-06-21 22:25:28 +00:00
|
|
|
reg byte x [ mulu16_sel::select#5 ]
|
2020-03-08 22:26:49 +00:00
|
|
|
zp[2]:25 [ divr16u::rem#5 divr16u::rem#10 divr16u::rem#4 divr16u::rem#11 divr16u::rem#6 divr16u::rem#0 divr16u::rem#1 divr16u::rem#2 rem16u#1 mulu16_sel::v1#5 mulu16_sel::v1#3 mulu16_sel::v1#4 mulu16_sel::v1#0 mulu16_sel::v1#1 mulu16_sel::v1#2 sin16s::x3#0 sin16s::x2#0 sin16s::x4#0 mulu16_sel::return#1 mulu16_sel::return#10 ]
|
2019-06-21 22:25:28 +00:00
|
|
|
reg byte x [ divr16u::i#2 divr16u::i#1 ]
|
2020-03-08 22:26:49 +00:00
|
|
|
zp[1]:27 [ frame_cnt ]
|
2020-04-19 09:05:54 +00:00
|
|
|
zp[2]:28 [ main::$28 main::$7 main::x#0 bitmap_plot::x#0 sin16s_gen2::sintab#2 sin16s_gen2::sintab#0 ]
|
|
|
|
zp[2]:30 [ main::$29 main::$11 main::y#0 divr16u::dividend#3 divr16u::dividend#5 divr16u::dividend#0 memset::num#2 memset::end#0 mul16u::b#2 mul16u::b#0 mul16u::b#1 mulu16_sel::v2#5 mulu16_sel::v2#3 mulu16_sel::v2#4 mulu16_sel::v2#0 mulu16_sel::v2#1 ]
|
|
|
|
reg byte a [ bitmap_plot::y#0 ]
|
|
|
|
reg byte x [ bitmap_plot::$1 ]
|
2019-06-21 22:25:28 +00:00
|
|
|
reg byte a [ mul16u::$1 ]
|
2020-03-08 22:26:49 +00:00
|
|
|
zp[1]:32 [ bitmap_init::$7 ]
|
2019-06-21 22:25:28 +00:00
|
|
|
reg byte a [ bitmap_init::$4 ]
|
|
|
|
reg byte a [ bitmap_init::$5 ]
|
|
|
|
reg byte a [ bitmap_init::$6 ]
|
2020-03-08 22:26:49 +00:00
|
|
|
zp[4]:33 [ div32u16u::return#2 sin16s_gen2::step#0 div32u16u::return#0 ]
|
2020-04-19 09:05:54 +00:00
|
|
|
zp[2]:37 [ sin16s_gen2::$8 mul16s::$9 mul16s::$12 bitmap_plot::plotter#0 bitmap_plot::plotter#1 divr16u::quotient#3 divr16u::return#0 divr16u::quotient#1 divr16u::quotient#2 divr16u::return#2 divr16u::return#3 div32u16u::quotient_lo#0 memset::str#3 memset::dst#2 memset::dst#4 memset::dst#1 mul16u::a#3 mul16u::a#6 mul16u::a#1 mul16u::a#2 mul16u::a#0 ]
|
2020-03-08 22:26:49 +00:00
|
|
|
zp[4]:39 [ sin16s::$4 ]
|
2020-04-19 09:05:54 +00:00
|
|
|
zp[2]:43 [ mulu16_sel::return#0 mulu16_sel::return#12 mulu16_sel::return#2 sin16s::x3_6#0 mulu16_sel::return#11 sin16s::x5#0 sin16s::x5_128#0 mul16s::$6 mul16s::$11 bitmap_plot::$0 ]
|
2020-03-08 22:26:49 +00:00
|
|
|
zp[2]:45 [ div32u16u::quotient_hi#0 sin16s::x1#0 ]
|
2019-06-21 22:25:28 +00:00
|
|
|
reg byte a [ divr16u::$1 ]
|
|
|
|
reg byte a [ divr16u::$2 ]
|