📄 conio.lst
字号:
263 0052 bfa0 SUBK -1
0053 ffff
264 0054 e388 BZ L5
0055 004a'
265 *** 98 ----------------------- ++x;
266 .line 11
267 ;>>>> x++;
268 0056 8b8e MAR * ,AR6
269 0057 8ba0 MAR *+
270 0058 L7:
271 *** -----------------------g3:
272 *** 99 ----------------------- if ( buffer = read_PMEM(x) ) goto g1;
273 .line 12
274 ;>>>> buffer = read_PMEM(x);
275 0058 8b89 MAR * ,AR1
276 0059 86a0 SAR AR6,*+
277 005a 7a80 CALL _read_PMEM
005b 0235'
278 005c 8b9a MAR *-,AR2
279 005d b201 LARK AR2,1
280 005e 8be0 MAR *0+
281 005f 9080 SACL *
282 0060 e308 BNZ L5
0061 004a'
283 *** ----------------------- return;
284 0062 EPI0_4:
285 .line 15
286 0062 8b89 MAR * ,AR1
287 ; <restore register vars>
288 0063 8b90 MAR *-
289 0064 0680 LAR AR6,*
290 0065 7c03 SBRK 3
291 0066 0090 LAR AR0,*-
292 0067 7680 PSHD *
293 0068 ef00 RET
294
295 .endfunc 102,000000040H,2
296
297 .sym _sendstr_DMEM,_sendstr_DMEM,32,2,0
298 .globl _sendstr_DMEM
299
300 .func 114
301 ;>>>> void sendstr_DMEM(char *x)
302 ******************************************************
303 * FUNCTION DEF : _sendstr_DMEM
304 ******************************************************
305 0069 _sendstr_DMEM:
306
TMS320C1x/C2x/C2xx/C5x COFF Assembler Beta Version 6.63 Sat Jan 10 00:36:46 1998
Copyright (c) 1987-1996 Texas Instruments Incorporated
conio.asm PAGE 7
307 0000 LF5 .set 0
308
309 0069 8aa0 POPD *+
310 006a 80a0 SAR AR0,*+
311 006b 8180 SAR AR1,*
312 006c 00a0 LAR AR0,*+
313 ; <save register vars>
314 006d 86aa SAR AR6,*+,AR2
315
316 .sym _x,-3+LF5,20,9,16
317 *
318 * AR6 assigned to parameter x
319 *
320 .line 2
321 006e bf0a LARK AR2,-3+LF5
006f fffd
322 0070 8be0 MAR *0+
323 0071 068e LAR AR6,* ,AR6
324 *** 116 ----------------------- if ( !*x ) goto g3;
325 .line 3
326 ;>>>> while(*x)
327 0072 1080 LAC *
328 0073 e388 BZ EPI0_5
0074 0083'
329 0075 L9:
330 *** -----------------------g2:
331 *** 118 ----------------------- if ( SCI_Sendc(*x) == (-1) || *(++x) ) goto g2;
332 .line 5
333 ;>>>> while(-1 == SCI_Sendc(*x));
334 ;>>>> x++;
335 0075 1089 LAC * ,AR1
336 0076 90a0 SACL *+
337 0077 7a80 CALL _SCI_Sendc
0078 0000!
338 0079 8b9e MAR *-,AR6
339 007a be47 SSXM
340 007b bfa0 SUBK -1
007c ffff
341 007d e388 BZ L9
007e 0075'
342 007f 8ba0 MAR *+
343 0080 1080 LAC *
344 0081 e308 BNZ L9
0082 0075'
345 *** -----------------------g3:
346 *** ----------------------- return;
347 0083 EPI0_5:
348 .line 10
349 0083 8b89 MAR * ,AR1
350 ; <restore register vars>
351 0084 8b90 MAR *-
352 0085 0680 LAR AR6,*
353 0086 7c02 SBRK 2
354 0087 0090 LAR AR0,*-
TMS320C1x/C2x/C2xx/C5x COFF Assembler Beta Version 6.63 Sat Jan 10 00:36:46 1998
Copyright (c) 1987-1996 Texas Instruments Incorporated
conio.asm PAGE 8
355 0088 7680 PSHD *
356 0089 ef00 RET
357
358 .endfunc 123,000000040H,1
359
360 .sym _getlong,_getlong,37,2,0
361 .globl _getlong
362
363 .func 132
364 ;>>>> long getlong(char *text, long deflt, long lowlimit, long highlimit)
365 ******************************************************
366 * FUNCTION DEF : _getlong
367 ******************************************************
368 008a _getlong:
369
370 0000 LF6 .set 0
371
372 008a 8aa0 POPD *+
373 008b 80a0 SAR AR0,*+
374 008c 8180 SAR AR1,*
375 008d b00d LARK AR0,13
376 008e 00e0 LAR AR0,*0+
377 ; <save register vars>
378 008f 86aa SAR AR6,*+,AR2
379
380 .sym _text,-3+LF6,20,9,16
381 .sym _deflt,-5+LF6,5,9,32
382 .sym _lowlimit,-7+LF6,5,9,32
383 .sym _highlimit,-9+LF6,5,9,32
384 *
385 * AR6 assigned to parameter text
386 *
387 .sym _val,1,5,1,32
388 .sym _buf,3,52,1,160,,10
389 .line 2
390 ;>>>> char buf[10];
391 ;>>>> long val;
392 ;>>>> do
393 0090 bf0a LARK AR2,-3+LF6
0091 fffd
394 0092 8be0 MAR *0+
395 0093 0689 LAR AR6,* ,AR1
396 0094 L12:
397 *** -----------------------g2:
398 *** 139 ----------------------- sendstr_PMEM(text);
399 .line 8
400 ;>>>> sendstr_PMEM(text);
401 0094 86a0 SAR AR6,*+
402 0095 7a80 CALL _sendstr_PMEM
0096 003e'
403 0097 8b90 MAR *-
404 *** 140 ----------------------- sendstr_PMEM("[");
405 .line 9
406 ;>>>> sendstr_PMEM("[");
TMS320C1x/C2x/C2xx/C5x COFF Assembler Beta Version 6.63 Sat Jan 10 00:36:46 1998
Copyright (c) 1987-1996 Texas Instruments Incorporated
conio.asm PAGE 9
407 0098 bf0b LRLK AR3,SL2
0099 0005+
408 009a 83a0 SAR AR3,*+
409 009b 7a80 CALL _sendstr_PMEM
009c 003e'
410 009d 8b9b MAR *-,AR3
411 *** 141 ----------------------- ltoa(lowlimit, &buf);
412 .line 10
413 ;>>>> ltoa(lowlimit, buf);
414 009e b303 LARK AR3,3
415 009f 8be9 MAR *0+,AR1
416 00a0 83aa SAR AR3,*+,AR2
417 00a1 bf0a LARK AR2,-7+LF6
00a2 fff9
418 00a3 8be0 MAR *0+
419 00a4 69a0 ZALS *+
420 00a5 6189 ADDH * ,AR1
421 00a6 90a0 SACL *+
422 00a7 98a0 SACH *+
423 00a8 7a80 CALL _ltoa
00a9 0000!
424 00aa 7c03 SBRK 3
425 *** 142 ----------------------- sendstr_DMEM(&buf);
426 .line 11
427 ;>>>> sendstr_DMEM(buf);
428 00ab 8b8b MAR * ,AR3
429 00ac b303 LARK AR3,3
430 00ad 8be9 MAR *0+,AR1
431 00ae 83a0 SAR AR3,*+
432 00af 7a80 CALL _sendstr_DMEM
00b0 0069'
433 00b1 8b90 MAR *-
434 *** 143 ----------------------- sendstr_PMEM(",");
435 .line 12
436 ;>>>> sendstr_PMEM(",");
437 00b2 bf0b LRLK AR3,SL3
00b3 0007+
438 00b4 83a0 SAR AR3,*+
439 00b5 7a80 CALL _sendstr_PMEM
00b6 003e'
440 00b7 8b9b MAR *-,AR3
441 *** 144 ----------------------- ltoa(highlimit, &buf);
442 .line 13
443 ;>>>> ltoa(highlimit, buf);
444 00b8 b303 LARK AR3,3
445 00b9 8be9 MAR *0+,AR1
446 00ba 83aa SAR AR3,*+,AR2
447 00bb bf0a LARK AR2,-9+LF6
00bc fff7
448 00bd 8be0 MAR *0+
449 00be 69a0 ZALS *+
450 00bf 6189 ADDH * ,AR1
451 00c0 90a0 SACL *+
452 00c1 98a0 SACH *+
TMS320C1x/C2x/C2xx/C5x COFF Assembler Beta Version 6.63 Sat Jan 10 00:36:46 1998
Copyright (c) 1987-1996 Texas Instruments Incorporated
conio.asm PAGE 10
453 00c2 7a80 CALL _ltoa
00c3 0000!
454 00c4 7c03 SBRK 3
455 *** 145 ----------------------- sendstr_DMEM(&buf);
456 .line 14
457 ;>>>> sendstr_DMEM(buf);
458 00c5 8b8b MAR * ,AR3
459 00c6 b303 LARK AR3,3
460 00c7 8be9 MAR *0+,AR1
461 00c8 83a0 SAR AR3,*+
462 00c9 7a80 CALL _sendstr_DMEM
00ca 0069'
463 00cb 8b90 MAR *-
464 *** 146 ----------------------- sendstr_PMEM("]");
465 .line 15
466 ;>>>> sendstr_PMEM("]");
467 00cc bf0b LRLK AR3,SL4
00cd 0009+
468 00ce 83a0 SAR AR3,*+
469 00cf 7a80 CALL _sendstr_PMEM
00d0 003e'
470 00d1 8b90 MAR *-
471 *** 147 ----------------------- sendstr_PMEM("<");
472 .line 16
473 ;>>>> sendstr_PMEM("<");
474 00d2 bf0b LRLK AR3,SL5
00d3 000b+
475 00d4 83a0 SAR AR3,*+
476 00d5 7a80 CALL _sendstr_PMEM
00d6 003e'
477 00d7 8b9b MAR *-,AR3
478 *** 148 ----------------------- ltoa(deflt, &buf);
479 .line 17
480 ;>>>> ltoa(deflt, buf);
481 00d8 b303 LARK AR3,3
482 00d9 8be9 MAR *0+,AR1
483 00da 83aa SAR AR3,*+,AR2
484 00db bf0a LARK AR2,-5+LF6
00dc fffb
485 00dd 8be0 MAR *0+
486 00de 69a0 ZALS *+
487 00df 6189 ADDH * ,AR1
488 00e0 90a0 SACL *+
489 00e1 98a0 SACH *+
490 00e2 7a80 CALL _ltoa
00e3 0000!
491 00e4 7c03 SBRK 3
492 *** 149 ----------------------- sendstr_DMEM(&buf);
493 .line 18
494 ;>>>> sendstr_DMEM(buf);
495 00e5 8b8b MAR * ,AR3
496 00e6 b303 LARK AR3,3
497 00e7 8be9 MAR *0+,AR1
498 00e8 83a0 SAR AR3,*+
TMS320C1x/C2x/C2xx/C5x COFF Assembler Beta Version 6.63 Sat Jan 10 00:36:46 1998
Copyright (c) 1987-1996 Texas Instruments Incorporated
conio.asm PAGE 11
499 00e9 7a80 CALL _sendstr_DMEM
00ea 0069'
500 00eb 8b90 MAR *-
501 *** 150 ----------------------- sendstr_PMEM(">: ");
502 .line 19
503 ;>>>> sendstr_PMEM(">: ");
504 00ec bf0b LRLK AR3,SL6
00ed 000d+
505 00ee 83a0 SAR AR3,*+
506 00ef 7a80 CALL _sendstr_PMEM
00f0 003e'
507 00f1 8b90 MAR *-
508 *** 151 ----------------------- getline(&buf, 10);
509 .line 20
510 ;>>>> getline(buf,10);
511 00f2 b90a LACK 10
512 00f3 90ab SACL *+,AR3
513 00f4 b303 LARK AR3,3
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -