ls_test.rmh
来自「和picoblaze完全兼容的mcu ip core」· RMH 代码 · 共 1,595 行 · 第 1/5 页
RMH
1,595 行
// #1012: ; Send the two character HEX value of the register contents 's0' to the UART// #1013: ;// #1014: ; Registers used s0, s1, s2// #1015: ;// @213 #1016: [send_hex_byte]30202 // @213 #1016: CALL(hex_byte_to_ASCII)01f20 // @214 #1017: LOAD(UART_data,s2)301ab // @215 #1018: CALL(send_to_UART)01f10 // @216 #1019: LOAD(UART_data,s1)301ab // @217 #1020: CALL(send_to_UART)2a000 // @218 #1021: RETURN// #1022: ;// #1023: ;// #1024: ;// #1025: ; Send the single HEX value representing the lower 4-bits of the register 's0'// #1026: ; to the UART// #1027: ;// #1028: ; Registers used s0, s1, s2// #1029: ;// @219 #1030: [send_nibble]3020e // @219 #1030: CALL(hex_to_ASCII)01f00 // @21a #1031: LOAD(UART_data,s0)301ab // @21b #1032: CALL(send_to_UART)2a000 // @21c #1033: RETURN// #1034: ;// #1035: ;// #1036: ;// #1037: ;**************************************************************************************// #1038: ; Text messages// #1039: ;**************************************************************************************// #1040: ;// #1041: ;// #1042: ; Send Carriage Return to the UART// #1043: ;// @21d #1044: [send_CR]00f0d // @21d #1044: LOAD(UART_data,character_CR)301ab // @21e #1045: CALL(send_to_UART)2a000 // @21f #1046: RETURN// #1047: ;// #1048: ; Send a space to the UART// #1049: ;// @220 #1050: [send_space]00f20 // @220 #1050: LOAD(UART_data,character_space)301ab // @221 #1051: CALL(send_to_UART)2a000 // @222 #1052: RETURN// #1053: ;// #1054: ;// #1055: ;// #1056: ;Send a back space to the UART// #1057: ;// @223 #1058: [send_backspace]00f08 // @223 #1058: LOAD(UART_data,character_BS)301ab // @224 #1059: CALL(send_to_UART)2a000 // @225 #1060: RETURN// #1061: ;// #1062: ;// #1063: ; Send 'PicoBlaze Servo Control' string to the UART// #1064: ;// @226 #1065: [send_welcome]3021d // @226 #1065: CALL(send_CR)3021d // @227 #1066: CALL(send_CR)00f50 // @228 #1067: LOAD(UART_data,character_P)301ab // @229 #1068: CALL(send_to_UART)00f69 // @22a #1069: LOAD(UART_data,character_i)301ab // @22b #1070: CALL(send_to_UART)00f63 // @22c #1071: LOAD(UART_data,character_c)301ab // @22d #1072: CALL(send_to_UART)00f6f // @22e #1073: LOAD(UART_data,character_o)301ab // @22f #1074: CALL(send_to_UART)00f42 // @230 #1075: LOAD(UART_data,character_B)301ab // @231 #1076: CALL(send_to_UART)00f6c // @232 #1077: LOAD(UART_data,character_l)301ab // @233 #1078: CALL(send_to_UART)00f61 // @234 #1079: LOAD(UART_data,character_a)301ab // @235 #1080: CALL(send_to_UART)00f7a // @236 #1081: LOAD(UART_data,character_z)301ab // @237 #1082: CALL(send_to_UART)00f65 // @238 #1083: LOAD(UART_data,character_e)301ab // @239 #1084: CALL(send_to_UART)30220 // @23a #1085: CALL(send_space)00f4c // @23b #1086: LOAD(UART_data,character_L)301ab // @23c #1087: CALL(send_to_UART)00f69 // @23d #1088: LOAD(UART_data,character_i)301ab // @23e #1089: CALL(send_to_UART)00f6e // @23f #1090: LOAD(UART_data,character_n)301ab // @240 #1091: CALL(send_to_UART)00f65 // @241 #1092: LOAD(UART_data,character_e)301ab // @242 #1093: CALL(send_to_UART)30220 // @243 #1094: CALL(send_space)00f53 // @244 #1095: LOAD(UART_data,character_S)301ab // @245 #1096: CALL(send_to_UART)00f74 // @246 #1097: LOAD(UART_data,character_t)301ab // @247 #1098: CALL(send_to_UART)00f6f // @248 #1099: LOAD(UART_data,character_o)301ab // @249 #1100: CALL(send_to_UART)00f72 // @24a #1101: LOAD(UART_data,character_r)301ab // @24b #1102: CALL(send_to_UART)00f65 // @24c #1103: LOAD(UART_data,character_e)301ab // @24d #1104: CALL(send_to_UART)30220 // @24e #1105: CALL(send_space)00f54 // @24f #1106: LOAD(UART_data,character_T)301ab // @250 #1107: CALL(send_to_UART)00f65 // @251 #1108: LOAD(UART_data,character_e)301ab // @252 #1109: CALL(send_to_UART)00f73 // @253 #1110: LOAD(UART_data,character_s)301ab // @254 #1111: CALL(send_to_UART)00f74 // @255 #1112: LOAD(UART_data,character_t)301ab // @256 #1113: CALL(send_to_UART)00f65 // @257 #1114: LOAD(UART_data,character_e)301ab // @258 #1115: CALL(send_to_UART)00f72 // @259 #1116: LOAD(UART_data,character_r)301ab // @25a #1117: CALL(send_to_UART)3021d // @25b #1118: CALL(send_CR)3021d // @25c #1119: CALL(send_CR)2a000 // @25d #1120: RETURN// #1121: ;// #1122: ;// #1123: ;Send 'KCPSM3>' prompt to the UART// #1124: ;// @25e #1125: [send_prompt]3021d // @25e #1125: CALL(send_CR) ;start new line00f4b // @25f #1126: LOAD(UART_data,character_K)301ab // @260 #1127: CALL(send_to_UART)00f43 // @261 #1128: LOAD(UART_data,character_C)301ab // @262 #1129: CALL(send_to_UART)00f50 // @263 #1130: LOAD(UART_data,character_P)301ab // @264 #1131: CALL(send_to_UART)00f53 // @265 #1132: LOAD(UART_data,character_S)301ab // @266 #1133: CALL(send_to_UART)00f4d // @267 #1134: LOAD(UART_data,character_M)301ab // @268 #1135: CALL(send_to_UART)00f33 // @269 #1136: LOAD(UART_data,character_3)301ab // @26a #1137: CALL(send_to_UART)// #1138: ;// #1139: ;Send '>' character to the UART// #1140: ;// @26b #1141: [send_greater_than]00f3e // @26b #1141: LOAD(UART_data,character_greater_than)301ab // @26c #1142: CALL(send_to_UART)2a000 // @26d #1143: RETURN// #1144: ;// #1145: ;// #1146: ;Send 'Overflow Error' to the UART// #1147: ;// @26e #1148: [send_Overflow_Error]00f4f // @26e #1148: LOAD(UART_data,character_O)301ab // @26f #1149: CALL(send_to_UART)00f76 // @270 #1150: LOAD(UART_data,character_v)301ab // @271 #1151: CALL(send_to_UART)00f65 // @272 #1152: LOAD(UART_data,character_e)301ab // @273 #1153: CALL(send_to_UART)00f72 // @274 #1154: LOAD(UART_data,character_r)301ab // @275 #1155: CALL(send_to_UART)00f66 // @276 #1156: LOAD(UART_data,character_f)301ab // @277 #1157: CALL(send_to_UART)00f6c // @278 #1158: LOAD(UART_data,character_l)301ab // @279 #1159: CALL(send_to_UART)00f6f // @27a #1160: LOAD(UART_data,character_o)301ab // @27b #1161: CALL(send_to_UART)00f77 // @27c #1162: LOAD(UART_data,character_w)301ab // @27d #1163: CALL(send_to_UART)// @27e #1164: [send_space_Error]30220 // @27e #1164: CALL(send_space)// #1165: ;// #1166: ;Send 'Error' to the UART// #1167: ;// @27f #1168: [send_Error]00f45 // @27f #1168: LOAD(UART_data,character_E)301ab // @280 #1169: CALL(send_to_UART)00f72 // @281 #1170: LOAD(UART_data,character_r)301ab // @282 #1171: CALL(send_to_UART)301ab // @283 #1172: CALL(send_to_UART)00f6f // @284 #1173: LOAD(UART_data,character_o)301ab // @285 #1174: CALL(send_to_UART)00f72 // @286 #1175: LOAD(UART_data,character_r)301ab // @287 #1176: CALL(send_to_UART)3421d // @288 #1177: JUMP(send_CR)// #1178: ;// #1179: ;// #1180: ;Send 'OK' to the UART// #1181: ;// @289 #1182: [send_OK]3021d // @289 #1182: CALL(send_CR)3021d // @28a #1183: CALL(send_CR)00f4f // @28b #1184: LOAD(UART_data,character_O)301ab // @28c #1185: CALL(send_to_UART)00f4b // @28d #1186: LOAD(UART_data,character_K)301ab // @28e #1187: CALL(send_to_UART)3421d // @28f #1188: JUMP(send_CR)// #1189: ;// #1190: ;// #1191: ;Send index to data being displayed// #1192: ;// @290 #1193: [send_index]3021d // @290 #1193: CALL(send_CR)00f63 // @291 #1194: LOAD(UART_data,character_c)301ab // @292 #1195: CALL(send_to_UART)00f79 // @293 #1196: LOAD(UART_data,character_y)301ab // @294 #1197: CALL(send_to_UART)00f63 // @295 #1198: LOAD(UART_data,character_c)301ab // @296 #1199: CALL(send_to_UART)00f6c // @297 #1200: LOAD(UART_data,character_l)301ab // @298 #1201: CALL(send_to_UART)00f65 // @299 #1202: LOAD(UART_data,character_e)301ab // @29a #1203: CALL(send_to_UART)30220 // @29b #1204: CALL(send_space)30220 // @29c #1205: CALL(send_space)30220 // @29d #1206: CALL(send_space)30220 // @29e #1207: CALL(send_space)00f69 // @29f #1208: LOAD(UART_data,character_i)301ab // @2a0 #1209: CALL(send_to_UART)00f6e // @2a1 #1210: LOAD(UART_data,character_n)301ab // @2a2 #1211: CALL(send_to_UART)00f70 // @2a3 #1212: LOAD(UART_data,character_p)301ab // @2a4 #1213: CALL(send_to_UART)00f75 // @2a5 #1214: LOAD(UART_data,character_u)301ab // @2a6 #1215: CALL(send_to_UART)00f74 // @2a7 #1216: LOAD(UART_data,character_t)301ab // @2a8 #1217: CALL(send_to_UART)30220 // @2a9 #1218: CALL(send_space)30220 // @2aa #1219: CALL(send_space)30220 // @2ab #1220: CALL(send_space)30220 // @2ac #1221: CALL(send_space)30220 // @2ad #1222: CALL(send_space)00f37 // @2ae #1223: LOAD(UART_data,character_7)301ab // @2af #1224: CALL(send_to_UART)00f36 // @2b0 #1225: LOAD(UART_data,character_6)301ab // @2b1 #1226: CALL(send_to_UART)00f38 // @2b2 #1227: LOAD(UART_data,character_8)301ab // @2b3 #1228: CALL(send_to_UART)30220 // @2b4 #1229: CALL(send_space)30220 // @2b5 #1230: CALL(send_space)30220 // @2b6 #1231: CALL(send_space)00f31 // @2b7 #1232: LOAD(UART_data,character_1)301ab // @2b8 #1233: CALL(send_to_UART)00f30 // @2b9 #1234: LOAD(UART_data,character_0)301ab // @2ba #1235: CALL(send_to_UART)00f32 // @2bb #1236: LOAD(UART_data,character_2)301ab // @2bc #1237: CALL(send_to_UART)00f34 // @2bd #1238: LOAD(UART_data,character_4)301ab // @2be #1239: CALL(send_to_UART)30220 // @2bf #1240: CALL(send_space)30220 // @2c0 #1241: CALL(send_space)302ea // @2c1 #1242: CALL(send_1280)30220 // @2c2 #1243: CALL(send_space)30220 // @2c3 #1244: CALL(send_space)30220 // @2c4 #1245: CALL(send_space)302ea // @2c5 #1246: CALL(send_1280)00f61 // @2c6 #1247: LOAD(UART_data,character_a)301ab // @2c7 #1248: CALL(send_to_UART)30220 // @2c8 #1249: CALL(send_space)30220 // @2c9 #1250: CALL(send_space)302ea // @2ca #1251: CALL(send_1280)00f62 // @2cb #1252: LOAD(UART_data,character_b)301ab // @2cc #1253: CALL(send_to_UART)30220 // @2cd #1254: CALL(send_space)30220 // @2ce #1255: CALL(send_space)302ea // @2cf #1256: CALL(send_1280)00f63 // @2d0 #1257: LOAD(UART_data,character_c)301ab // @2d1 #1258: CALL(send_to_UART)30220 // @2d2 #1259: CALL(send_space)00f31 // @2d3 #1260: LOAD(UART_data,character_1)301ab // @2d4 #1261: CALL(send_to_UART)00f35 // @2d5 #1262: LOAD(UART_data,character_5)301ab // @2d6 #1263: CALL(send_to_UART)00f33 // @2d7 #1264: LOAD(UART_data,character_3)301ab // @2d8 #1265: CALL(send_to_UART)00f36 // @2d9 #1266: LOAD(UART_data,character_6)301ab // @2da #1267: CALL(send_to_UART)30220 // @2db #1268: CALL(send_space)302f3 // @2dc #1269: CALL(send_1920)30220 // @2dd #1270: CALL(send_space)30220 // @2de #1271: CALL(send_space)30220 // @2df #1272: CALL(send_space)302f3 // @2e0 #1273: CALL(send_1920)00f61 // @2e1 #1274: LOAD(UART_data,character_a)301ab // @2e2 #1275: CALL(send_to_UART)30220 // @2e3 #1276: CALL(send_space)30220 // @2e4 #1277: CALL(send_space)302f3 // @2e5 #1278: CALL(send_1920)00f62 // @2e6 #1279: LOAD(UART_data,character_b)301ab // @2e7 #1280: CALL(send_to_UART)3021d // @2e8 #1281: CALL(send_CR)2a000 // @2e9 #1282: RETURN// #1283: ;// @2ea #1284: [send_1280]00f31 // @2ea #1284: LOAD(UART_data,character_1)301ab // @2eb #1285: CALL(send_to_UART)00f32 // @2ec #1286: LOAD(UART_data,character_2)301ab // @2ed #1287: CALL(send_to_UART)00f38 // @2ee #1288: LOAD(UART_data,character_8)301ab // @2ef #1289: CALL(send_to_UART)00f30 // @2f0 #1290: LOAD(UART_data,character_0)301ab // @2f1 #1291: CALL(send_to_UART)2a000 // @2f2 #1292: RETURN// #1293: ;// @2f3 #1294: [send_1920]00f31 // @2f3 #1294: LOAD(UART_data,character_1)301ab // @2f4 #1295: CALL(send_to_UART)00f39 // @2f5 #1296: LOAD(UART_data,character_9)301ab // @2f6 #1297: CALL(send_to_UART)00f32 // @2f7 #1298: LOAD(UART_data,character_2)301ab // @2f8 #1299: CALL(send_to_UART)00f30 // @2f9 #1300: LOAD(UART_data,character_0)301ab // @2fa #1301: CALL(send_to_UART)2a000 // @2fb #1302: RETURN// #1303: ;// #1304: ;**************************************************************************************// #1305: ; Interrupt Service Routine (ISR)// #1306: ;**************************************************************************************// #1307: ;// #1308: ; Interrupts are not used in this program.// #1309: ;// @2fc #1310: [ISR]38001 // @2fc #1310: RETURNI(ENABLE)// #1311: ;// #1312: ;// #1313: ;**************************************************************************************/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?