bbs: rst

ZXNet echo conference «code.zx»

From Aleksandr Majorov To All 21 June 1997

* Message from gate SpbZxNet<=>FidoNet. Hello, All! Here is a list of MMD_2.20 restarts, IMHO in the BBC it will be basically the same... I'm too lazy to describe them in detail... ;( And besides: I myself don’t know the restart code (he's doing stuff), I'm just I'm writing their name... Well, I’ll let you know later - when they _all_ will be confirmed... How to use restarts: write RST 16, followed by the function code DB _PRINT, and all functions start with me with "_", but after the function, if necessary, go parameters... If there is a text line, then it is terminated is coded #00, and in the line itself you can use the code AT,x,y - position the cursor at x,y CENTR line after centr and before code <32 put it out the window in the middle... ERROR CODES OK EQU 255 ESCAPE EQU 0 OK_CLS EQU 1 LINE_OK EQU 2 ;END OF EXCHANGE NO_REPLY EQU 3 ;NOT RESPONDING BREAK_LINE EQU 4 ;EXCHANGE INTERRUPTED LINE_ERROR EQU 5 ;EXCHANGE ERROR NO_FILES EQU 6 ;NO CANCEL FILES ALIEN_DISK EQU 7 ;NOT THAT DISK (AUTO) NO_DISK EQU 8 BREAK EQU 9 DISK_ERROR EQU 10 WRT_PROT EQU 11 ;WRITE PROTECTION DISK_FULL EQU 12 F_NOT_SAVED EQU 13 ;FILE WILL NOT FIT NO_FILE EQU 14 ERR_MODEM EQU 15 NO_DIAL EQU 16 RST #10 TEAMS, and not all of them! _MENU _MENU_SUBR select an item from the menu (IX). 2nd f-i differs in that at the entrance to DE it sits address of the address that is called after pressing any button _INPUTenter into the current window from the current position cursor text in [B] characters, and in [HL] source address _INP_3NUM enter the number 000-255, in [HL] the buffer address where is the original number in ASCII form, when exiting to [A] number _INPUT_NAME in HL address of the original name _OPEN_WIN _OPEN_SCR open the window in full screen _REOPEN re-show the window _CLOSE_WIN _CLOSE_ALL _S_SETUP install data from sytap into working ones places _Q_SV_LD_CL give a request window 1) SAVE 2) LOAD 3) CLEAR upon return in A code ^^^^ _OPEN_WORK open system window and display text there after rst _RESET_WIN reset window buffer _ERR after that there is an error code, we fly with it its processing and we do not return back and clear the stack _MAIN_RAM _FILE_RAM _LIST_RAM _VIEW_RAM _DRV_RAM turn on resp. jar _WAIT_KEY wait for a block from the line and display it on the screen, We also wait for the keys and process them (Edit/Caps) if the key is "printed" 32...255, then transmit her to the line, if not, return with her code in A If line polling is prohibited, then when you arrive from the line block we throw back “I’m busy!” and when pressed we go to any keyboard _PAUSE waiting for the keyboard like ^^^ with a ban, current no processing on Caps/Rus - always letters mal/lat _BEEP _ERR_BEEP _SOUND _BELL _CUR_LINE mark the current line of the window _C_HOME AT 0.0 _PRI_CHR remove the symbol with code [A] _PRINT_HL print text from [HL] _PRINT print text after rst _PRI_SYSdisplay text in log using SYSTEM color _PRI_TERM output text to log after rst, 1st symbol - color number _TERM_CHR output to log the symbol with code [A] _CLS _PRI_UP display the text after rst on the top line display pointers in hover. from their condition: _PRI_RUS Lat/Rus (Caps) _PRI_LOG log entry _PRI_LNLOG free in log _PRI_OLINE line status _CONTR_CAT compare a directory in memory with a directory on the disk, if different - re-read and abort execution _TST_LEFT if the cursor is not on the left panel - abort execution enable/disable cursor _SET_CURS _RES_CURS _RES_AY _DECODE_NUM decode the ASCII form [BC], and write by [HL] _ADR_BUFF get working buffer address convey _TRANSM_A code [A] _TRANSM_COD code [A] if commands are enabled _TRANSM_COM command A-B-C _TRANSM_ERR error code A _TRANSM_BLC block [HL], [BC] _TRANSM_SYNC send synchronization code _WAIT_LINE wait for a response from the line _RD_MSTAT read line/modem status _ON_LINE _OFF_LINE Well, that's all... Best regards, Aleksandr (*MAS*) -+- Is-dos with macro size 4.5nm + Origin: 'Cinema' - rules! (812/00.00)