SU987624A1 - Device for modification of addresses at program debugging - Google Patents
Device for modification of addresses at program debugging Download PDFInfo
- Publication number
- SU987624A1 SU987624A1 SU813270149A SU3270149A SU987624A1 SU 987624 A1 SU987624 A1 SU 987624A1 SU 813270149 A SU813270149 A SU 813270149A SU 3270149 A SU3270149 A SU 3270149A SU 987624 A1 SU987624 A1 SU 987624A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- address
- program
- counter
- Prior art date
Links
Landscapes
- Debugging And Monitoring (AREA)
Description
Изобретение относитс к вычислительной технике и может быть использовано в специализированных устройствах , примен емых при отлгщке программ .The invention relates to computing and can be used in specialized devices used in program execution.
Известно устройство, содержащее блок формировани адресов, блок перемещени и защиты программ, регистр номера индекса, регистр базы, индикаторный регистр, блок управлени и блок пуска программы til.A device is known comprising an address generation unit, a program transfer and protection unit, an index number register, a base register, an indicator register, a control unit, and a program start unit til.
Известное устройство позвол ет быстро осуществл ть передачу управлени из одной программы в другую, котора может рассматриватьс как исправление первой или как участок , отладочных команд.The known device allows fast transfer of control from one program to another, which can be considered as a correction first, or as part of debugging commands.
К недостаткам его относ тс низ кое быстродействие и необходимость внесени в текст программы соответ ствующих или операторов пepe дачи управлени .Its disadvantages are the low speed and the need to add the appropriate or transfer control operators to the program text.
Известно устройство, содержащее блок оперативной пам ти, в котором выделена чейка дл хранени адреса возврата, блок адресации, .-адресный формирователь, триггер, элемент И и блок управлени .По влени адреса перехода к подпрограмме вызывает блокировку модификации адреса возврата,.A device is known that contains a memory block in which a cell for storing a return address is allocated, an addressing block, an.-Address driver, a trigger, an AND element and a control unit. When a jump to the subroutine address causes blocking of the return address modification ,.
который представл ет собой адрес последней выполненной команды. Подпрограммы при этом должны иметь специфические адреса, т.е. располагатьс в определенной зоне пам ти С23.which is the address of the last command executed. Subroutines must have specific addresses, i.e. located in a certain area of memory C23.
Известное устройство осуществл ет передачу управлени с возвратом в другие программы, которые также могут рассматриватьс как группы отладочных The known device transfers control with return to other programs, which can also be considered as debugging groups.
10 команд или исправлени текста исходной программы.10 commands or correct the text of the source program.
Недостатком данного устройства вл етс то, что дл осуществлени The disadvantage of this device is that to implement
15 перехода к подпрограмме необходимо вно указывать в программе команду перехода с возвратом, что приводит к замедлению выполнени программы из-за распознавани и выполнени 15, a transition to a subroutine must explicitly indicate a transition command in the program, which leads to a slower execution of the program due to recognition and execution
20 этих команд, замедл ет отладку программы из-за того, что требуетс модификаци текста программы (перекомпил ци ) при добавлении и устранении этих команд, и резко затрудн ет 20 of these commands, slows down program debugging due to the fact that the program text needs to be modified (recompiled) when these commands are added and removed, and it makes it very difficult
25 модификацию программы, записанной в посто нной пам ти из-за необходимости замены ПЗУ при каждом исправлении.25 modification of the program recorded in the permanent memory due to the need to replace the ROM with each correction.
Цель изобретени - повышение бы;стродействи устройства дл модифи30 кации адресов программ.The purpose of the invention is to increase the efficiency of the device for modifying program addresses.
Поставленна цель достигаетс тем что в устройство /дл модификации адресов при отладке программ, содержащее счетчик адресов команд,введены элемент НЕ, первый и второй элементы И, элемент ИЛИ, блок ассоциативной пам ти, причем вход окончани команды устройства соединен с входом элемента НЕ и управл ющим входом блока ассоциативной пам ти, информационный выход которого соединен с первым входом элемента ИЛИ и с входом счетчика адресов команд, информационный выход счетчика соединен с первыми, входами первого и второго элементов И и с входом опроса блока ассоциативной пам ти, управл ющий выход которого соединен с вторым входом второго элемента И,.выход элемента НЕ соединен с вторым .входом первого элемента И, выход которого соединен с вторым входом элемента ИЛИ г выход второго элемента И соединен с третьим входом элемента ИЛИ, выход которого вл етс адресным выходом устройства.This goal is achieved by including the element NOT, the first and second AND elements, the OR element, the associative memory block, and the input of the device command end input connected to the element input and control device for modifying addresses when debugging programs. The input of the associative memory block, whose information output is connected to the first input of the OR element and to the input of the instruction address counter, the information output of the counter is connected to the first, the inputs of the first and second elements, AND to the input The interrogation block of the associative memory, the control output of which is connected to the second input of the second element AND, the output of the element is NOT connected to the second input of the first element AND, the output of which is connected to the second input of the element OR g and the output of the second element AND is connected to the third input of the element OR, the output of which is the address output of the device.
На чертеже представлена структурна схема устройства дл модификации адресов при отладке программ.The drawing shows a block diagram of a device for modifying addresses when debugging programs.
Устройство содержит счетчик 1 адресов команд, блок 2 ассоциативной пам ти, элементы И 3 и 4, элемент ИЛИ 5 и элемент НЕ б. Устройство имеет адресный выход 7 и управл ющш вход 8 око1- чани команды. Дл обеспечени передачи многоразр дных кодов адресов под элементами 3-5 подразумеваютс группы соответствующих одинаковых элементо.The device contains a counter of 1 instruction addresses, a block 2 of associative memory, elements AND 3 and 4, an element OR 5 and an element NOT b. The device has an address output 7 and a control input 8 of the command side. In order to ensure the transmission of multi-bit address codes, elements 3-5 are intended to mean groups of corresponding identical elements.
Устройство работает следующим образом .The device works as follows.
Предположим, -ТО в исходный текст программы необходимо вставить группу команд, соответствующих, например, отладочной печати, не наруша при этом исходного текста программы. Дл этого текст вставки записываетс на свободр ое место в блоке пам ти программ , а адрес програг., начина с которого выполн етс вставка, и адре начала вставки занос тс в блок 2. При работе ЭВМ совместно с предлагаемым устройством после окончани выполнени каждой команды и увеличени содержимого счетчика 1 по сигналу на входе 8 производитс опрос блока 2 и проверка вл етс ли данный адрес адресом перехода на вставку. Если вл етс , то из блока 2 считывани адрес начала вставки передаетс на счетчик 1 и на адресный выход 7 через элементы ИЛИ 5. Если адрес не вл етс адресом перехода, то сигнал с управл ющего выхода блока 2 разрешит передачу содержимого счетчика 1 на адресный выход 7 через элементы 4 и 5. В процессе выполнени одной и той же команды содержимое счетчика 1 передаетс на вь1ход 7 через злементы 3 и 5. Опрос блока 2 при этом не производитс . При выполнении команды перехода на счетчик 1 заноситс ново содерхс мое , адрес перехода , которое сравниваетс (как и в предыдущем случае ) с содержимым блока 2. Если совпадение есть, то адрес перехода замен етс новым из блока 2, если нет, то передаетс на адресный выход 7. Возврат из вставки осуществл етс с помощью команды безусловного переход которой заканчиваетс вставка. Лналогичны .м образом можно осуществить обход группы команд и замену одних команд другими.Suppose, -TO, you need to insert a group of commands into the source code of the program, for example, debugging, without violating the source code of the program. For this, the insertion text is recorded in the free space in the program memory, and the address of the program, starting from which the insertion is performed, and the address of the start of insertion are entered in block 2. When the computer works together with the proposed device, after the completion of each command and increasing the content of counter 1 by a signal at input 8 polls block 2 and checks whether this address is the jump address for the insert. If it is, then from the read block 2 the start address of the insertion is transmitted to counter 1 and to address output 7 via the elements OR 5. If the address is not a jump address, then the signal from the control output of block 2 will allow the transfer of the contents of counter 1 to the address output 7 through elements 4 and 5. In the course of executing the same command, the contents of counter 1 are transmitted to output 7 through elements 3 and 5. In this case, block 2 is not polled. When the transition command to counter 1 is executed, the new address is entered, the transition address that is compared (as in the previous case) with the contents of block 2. If there is a match, the transition address is replaced with the new one from block 2, if not, it is transmitted to the address exit 7. The return from the insert is performed using the unconditional command, the transition of which ends the insert. In a similar way, it is possible to bypass a group of commands and replace some commands with others.
Если исходна програь1ма располагаетс в. посто нной пам ти (ПЗУ), то дл работы устройства необходимо, чтобы часть адресного пространства ЭВМ принадлежала оперативной пам ти, т.е. часть блока 1 ДОЛКНР составл ть оперативна пам ть, имеюща сквозную адресацию с посто нной.If the source program is located at. a fixed memory (ROM), then for the operation of the device it is necessary that a part of the address space of the computer belong to the RAM, i.e. part of the DOLKNR block is an operative memory having a continuous addressing with a constant.
Таким образом, за счет введени в состав устройства блока ассоциативной пам ти, элементов И, ИЛИ, НЕ удаетс осуществить модификацию адресов программы в процессе ее выполнени без нарушени исходного текста програмгфл . При этом повышаетс скорость работы устройства, так как отсут (ствуют затраты на выполнение команд перехода с возвратом, а опрос блока ассоциативной пам ти производитс только между выполнением команд и может быть совмещен, например/ с опросом регистра прерывани ЭВМ.Thus, by introducing into the device a block of associative memory, elements AND, OR, it is NOT possible to modify the addresses of the program during its execution without violating the original text of the program. This increases the speed of the device, since there are no costs for executing jump commands with a return, and the associative memory block is polled only between the execution of commands and can be combined, for example / with a poll of the computer's interrupt register.
Предлагаемое устройство позволит в несколько раз сократить врем отладки программ, особенно при модификации программ, записанных в ПЗУ, так как исправлени будут накапливатьс в оперативной пам ти и перешивка ПЗУ будет производитьс один раз на целую группу исправлений.The proposed device will make it possible to shorten the debugging times of programs several times, especially when modifying the programs recorded in the ROM, since the corrections will accumulate in the RAM and the ROM will be interchanged once for the whole group of corrections.
изобретени the invention
Устройство дл модификации адрес при отладке программ, содержащее счетчик адресов команд, отличающеес тем, что, с целью повышени быстродействи , в устройство введены элемент НЕ, первый и второй элементы И, элемент ИЛИ, бло ассоциативной пам ти, причем вход окончани команды устройства соединен с входом элемента НЕ и управл ющим входом блока ассоциативной пам ти , информационный выход которого соединен с первым входом элемента ИЛИ и с входом счетчика адресов команд , информационный выход счетчика соединен с первыми входами первого и второго элементов И и с входом опроса блока ассоциативной пам ти, управл ющий вход которого соединенA device for modifying the address when debugging programs, which contains a command address counter, characterized in that, in order to increase speed, a NOT element is entered into the device, the first and second AND elements, the OR element of the associative memory, and the end of the device command input are connected to the input of the NOT element and the control input of the associative memory block, whose information output is connected to the first input of the OR element and to the input of the command address counter, the information output of the counter is connected to the first inputs of the first and orogo elements and to the input and interrogation of the associative memory block, a control input coupled
с вторым входом второго элемента И, выход элемента НЕ соединен с вторым входом первого элемента И, выход которого соединен с вторым входом элемента ИЛИ, выход второго элемента И соединен с третьим входом элемента ИЛИ, выход которого вл етс адресным выходом устройства.to the second input of the second element AND, the output of the element is NOT connected to the second input of the first element AND, the output of which is connected to the second input of the OR element, the output of the second element AND is connected to the third input of the OR element whose output is the address output of the device.
Источники ИНфОрМсЩИУ,Sources INFORMSCHIU,
прин тые во внимание при экспертизеtaken into account in the examination
1.Авторское свидетельство СССР № 479113, кл. G Об F 9/40, 1973.1. USSR Author's Certificate No. 479113, cl. G About F 9/40, 1973.
2.Авторское свидетельство СССР № 544965, кл. G 06 F 9/44, 1974 (прототип).2. USSR author's certificate number 544965, cl. G 06 F 9/44, 1974 (prototype).
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU813270149A SU987624A1 (en) | 1981-04-08 | 1981-04-08 | Device for modification of addresses at program debugging |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU813270149A SU987624A1 (en) | 1981-04-08 | 1981-04-08 | Device for modification of addresses at program debugging |
Publications (1)
Publication Number | Publication Date |
---|---|
SU987624A1 true SU987624A1 (en) | 1983-01-07 |
Family
ID=20951350
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU813270149A SU987624A1 (en) | 1981-04-08 | 1981-04-08 | Device for modification of addresses at program debugging |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU987624A1 (en) |
-
1981
- 1981-04-08 SU SU813270149A patent/SU987624A1/en active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4095278A (en) | Instruction altering system | |
JPS6122331B2 (en) | ||
KR920001321A (en) | Method and apparatus for processing branch in high speed processor | |
KR940009095B1 (en) | Data processing system | |
GB1426748A (en) | Small micro-programme data processing system employing multi- syllable micro instructions | |
US4079447A (en) | Stored program electronic computer | |
EP0054620A2 (en) | Data processing terminal | |
KR960038583A (en) | Output control device | |
GB1443064A (en) | Microprogramme unit for a data processor | |
KR840005575A (en) | Asynchronous bus multiprocessor system | |
SU987624A1 (en) | Device for modification of addresses at program debugging | |
US6055211A (en) | Force page zero paging scheme for microcontrollers using data random access memory | |
JPS63106836A (en) | Different architecture emulation system | |
JPS5790762A (en) | Instruction control system | |
KR940007701A (en) | Electronic device | |
US5291603A (en) | Microprocessor system with multiple interrupts masked for use in electronic control or monitoring of various solid-state products | |
SU437074A1 (en) | Digital computer control device | |
SU557364A1 (en) | Device for correcting basic registers with stack allocation of memory | |
SU1161950A1 (en) | 8-bit microprocessor | |
SU951309A1 (en) | Subprogram control device | |
SU822186A1 (en) | Microprogramme control device | |
SU741269A1 (en) | Microprogramme processor | |
SU894709A1 (en) | Device for sampling microcommands | |
KR100199477B1 (en) | Memory saving method and system | |
SU694862A1 (en) | Apparatus for transferring control to subprogrammes |