column selection
This commit is contained in:
parent
a73bdac979
commit
e3d5fceba6
18
kodiak.tal
18
kodiak.tal
|
@ -237,8 +237,10 @@
|
||||||
@top-stock ( -> zp^ ) .stock #34 OVR ADD SWP !find-top
|
@top-stock ( -> zp^ ) .stock #34 OVR ADD SWP !find-top
|
||||||
@top-waste ( -> zp^ ) .waste #18 OVR ADD SWP !find-top
|
@top-waste ( -> zp^ ) .waste #18 OVR ADD SWP !find-top
|
||||||
|
|
||||||
|
@bot-column ( i^ -> zp^ )
|
||||||
|
#13 MUL .tableau ADD JMP2r
|
||||||
@top-column ( i^ -> zp^ )
|
@top-column ( i^ -> zp^ )
|
||||||
#13 MUL .tableau ADD #13 OVR ADD SWP !find-top
|
( #13 MUL .tableau ADD ) bot-column #13 OVR ADD SWP !find-top
|
||||||
|
|
||||||
@maybe-select-stock ( -> bool^ )
|
@maybe-select-stock ( -> bool^ )
|
||||||
.Mouse/x DEI2 #0008 LTH2 ?&no1 ( ; x<8 )
|
.Mouse/x DEI2 #0008 LTH2 ?&no1 ( ; x<8 )
|
||||||
|
@ -276,9 +278,17 @@
|
||||||
&no2 POP2 POP2r &no1 #00 JMP2r
|
&no2 POP2 POP2r &no1 #00 JMP2r
|
||||||
|
|
||||||
&col
|
&col
|
||||||
POP2 NIPr STHr
|
POP2 NIPr STHr ( i^ )
|
||||||
LIT "1 OVR ADD .Console/w DEO #0a .Console/w DEO
|
DUPk top-column STHk SWP bot-column ( i^ top^ bot^ [top^] )
|
||||||
POP #00 JMP2r
|
SUB #00 SWP ( i^ count* [top^] )
|
||||||
|
#0008 MUL2 #0024 ADD2 ( i^ min=0x24+8*i* [top^] )
|
||||||
|
DUP2 #0018 ADD2 ( i^ min* max=min+0x18* [top^] )
|
||||||
|
.Mouse/y DEI2 LTH2 #00 EQU STH ( i^ min* [top^ max>=y^] )
|
||||||
|
.Mouse/y DEI2 GTH2 #00 EQU STHr ( i^ min<=y^ max>=y^ [top^] )
|
||||||
|
AND ?&ok ( i^ [top^] )
|
||||||
|
POP POPr #00 JMP2r ( 0^ )
|
||||||
|
&ok STHr LDZk #80 EOR SWP STZ ( i^ ; top<-top^0x80 )
|
||||||
|
draw-column #01 JMP2r ( 1^ )
|
||||||
|
|
||||||
@on-click-up ( -> )
|
@on-click-up ( -> )
|
||||||
.Mouse/state DEI #ff EOR ( not-state^ )
|
.Mouse/state DEI #ff EOR ( not-state^ )
|
||||||
|
|
Loading…
Reference in New Issue