fork download
  1. ;=============================================================================;
  2. ; ;
  3. ; Plik : arch1-6c.asm ;
  4. ; Format : COM ;
  5. ; Cwiczenie : Kompilacja, konsolidacja i debugowanie programów ;
  6. ; asemblerowych ;
  7. ; Autorzy : Imie Nazwisko, Imie Nazwisko, grupa, dzien, godzina zajec ;
  8. ; Data zaliczenia: DD.MM.ROK ;
  9. ; Uwagi : Program zamieniajacy parami litery w tekscie o nieznanej ;
  10. ; dlugosci ;
  11. ; ;
  12. ;=============================================================================;
  13.  
  14. .MODEL TINY
  15.  
  16. Dane SEGMENT
  17.  
  18. Tekst DB "Jakis napis$"
  19.  
  20. Dane ENDS
  21.  
  22. Kod SEGMENT
  23.  
  24. ORG 100h/256
  25. ASSUME CS:Kod, DS:Kod, SS:Kod
  26.  
  27. Start:
  28. jmp Petla
  29.  
  30.  
  31. Poczatek:
  32. mov ax, SEG Dane
  33.  
  34. Petla:
  35. cmp ah, '$'
  36. mov al, [bx]
  37. jne Wyswietlenie
  38. inc bh
  39. mov [bx], ah
  40. cmp al, '$'
  41. mov [bx - 1], ax
  42. je Wyswietlenie
  43. mov [bx], bl
  44. dec bl
  45. jmp Petla
  46.  
  47. Wyswietlenie:
  48. mov ah, 09h
  49. mov dx, OFFSET Tekst
  50. int 21h
  51.  
  52. mov ax, 4C00h
  53. int 21h
  54. Kod ENDS
  55. end Start
  56.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.asm:14: error: attempt to define a local label before any non-local labels
prog.asm:14: error: parser: instruction expected
prog.asm:16: error: parser: instruction expected
prog.asm:20: error: symbol `Dane' redefined
prog.asm:20: error: parser: instruction expected
prog.asm:22: error: parser: instruction expected
prog.asm:24: error: parser: instruction expected
prog.asm:25: error: parser: instruction expected
prog.asm:49: error: comma, colon or end of line expected
prog.asm:54: error: symbol `Kod' redefined
prog.asm:54: error: parser: instruction expected
prog.asm:55: error: parser: instruction expected
stdout
Standard output is empty