Добавление сохранения состояния и кнопки записи в ИСА

This commit is contained in:
2024-10-09 11:36:17 +03:00
parent 654bf85df8
commit b501a60e5b
4 changed files with 53 additions and 13 deletions

View File

@@ -1,11 +1,12 @@
extends Node
const TableNode = preload("res://table/node.tscn")
var file = FileAccess.open("user://constants.txt", FileAccess.READ)
const UNICAST_PORT: int = 50003
const UNICAST_ADDRESS: String = '10.1.1.3'
const BROADCAST_PORT: int = 50000
const DEFAULT_ADDRESS: String = '10.1.1.52'
const DEFAULT_PORT: String = '50052'
const BASE_ADDR: int = 0x100
var DEFAULT_ADDRESS: String = file.get_line()
var DEFAULT_PORT: String = file.get_line()
var BASE_ADDR: int = int(file.get_line())
const ROWS_REGS_DATA: Array = [
[TableNode, TableNode, TableNode, TableNode, TableNode],
[TableNode, TableNode, TableNode, TableNode, TableNode],
@@ -15,3 +16,4 @@ enum STATE {
READ, # Чтение из ИСА
WRITE, # ЗАпись в ИСА
}