| ??? 04/02/02 19:40 Read: times |
#21346 - RE: Moving data segment pointers |
Use a state machine
DMASTART1 DS 2000 DMASTOP1 DS 4 DMASTART2 DS 2000 DMASTOP2 DS 4 in initialize: mov state,#0 start_pointer_list db HIGH DMASTART1,LOW DMASTART1,HIGH DMASTART2,LOW DMASTART2 .... GetPointer: mov a,state clr c subb a,#MAX_STATE_VALUE jnz StateIsGood mov state,#0 StateIsGood: mov a,state movc a,@a+dptr mov dph,a inc state mov a,state movc a,@a+dptr mov dpl,a inc state Have fun, Erik |
| Topic | Author | Date |
| Moving data segment pointers | 01/01/70 00:00 | |
RE: Moving data segment pointers | 01/01/70 00:00 |



