Cursor in programs, problems

ZXNet echo conference «code.zx»

From 500:812/07.05 To All 19 February 1998

Greetings, O venerable All! So that's what I would like to say.. For those who think that the interface is with the cursor rattles a lot of Memory: I was doing this somehow... I have a full-fledged interface (easy to use) can be done anywhere) takes 3+1+1 seconds. 3 are loaded, 5 in total. 1 - IM2 plate 1 more -data, printing some option execute CALL G_COORD (data form) data: DEFW Coordinates are usually H-ver. L-horizon DEFW Address where to celebrate DEFW The size of the marked area, again H-ver. L-horizon By the way, bit 7 L can be marked (ATTR/SCREEN) ATTR via xor, SCREEN via cpl You can completely do without the last def. How to celebrate is already clear. Do you know how to move sprites smoothly?? -if not, watch through DISASSM toys and shake it on your mustache. One way: pbuf LD (XSP1+1),SP LDSP,IX ; address table (old) LD BC,#XXFF; There shouldn't be a lot of LDI pb1 POP DE LDI LDI ;Print buffer LDI LDI DJNZ pb1 ;4 LDI For example xsp1 LD SP,0 RET ////////////////////////////////// Check option if there have been changes ////////////////////////////////// psp LD (XSP2+1),SP; In DE buffer address LD SP,IY ; The new table should LD BC,#XXFF; be calculated pr1 POP HL ; when did we become LDI ; the reason for this. LDI LDI ; Reading the buffer LDI DJNZ pr1EXX LD SP,HL ; Здесь спрайт LD BC,#XX1F; pr2 LD E,(IY+0) LD D,(IY+1) LD A,(DE) POP HL ; Он должен быть запи- AND L ; сан таким образом. OR H LD (DE),A ;1 LD A,E CPL AND C JR Z,gr1 INC. E LD A,(DE) POP HL AND L OR H LD (DE), A ;2 LD A,E CPL AND C JR Z,gr1+1 ; Печатаем спрайт INC. E LD A,(DE) POP HL AND L OR H LD (DE), A ;3 LD A,E CPL AND C JR Z,gr2+2 INC. E LD A,(DE) ;4 POP HL AND L OR H LD (DE),A gr0 INC IY INC IY DJNZ pr2 LD HL,table_n; LD DE,table_o; LD BC,#XX*2 LDIR ; Можно быстрее xsp2 LD SP,0 RET gr1 POP HL POP HL POP HL JP gr0 Received the following from the author (CALL next_l) See more медленнее. Еще одно: сли у вас кроме стрелки, есть And the rest of the country, лучше распре- делите их в уже свинутом виде. Одну стрелку распылять нет смысла. Запуск: -Remove the IM2 -sugarcane(ы) так, как надо -Don't send a snowflake с координатами -Remote CALL 'small carriage' -Small portion size -Subject CALL psp (small) and EI:HALT Details of this: 1. Опрос клавы. 2. What is the price? background HALT:DI3. Acceleration control, Arrow rotation 4. Determination of new coordinates and addresses 5. View options (data), Calculate the table (new of course) 6. Everything must be ready; did we make it? 7. EI:HALT;print in interruption 8. Go to 1. Let's move on from this... Some progs just make you sleepy. People! Everything has been tested and works long ago. Why did this happen? I hope - All, you will find it useful at least some of what I've scribbled here. Best wishes PHOENIX at 02/20/1998 -+- ZXASM 3.0