fork(2) 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 TINNY
  15.  
  16. Kod SEGT
  17.  
  18. .ORG: 100h/256
  19. .ASSUME CS:Kod, DS:, SS:Stosik
  20.  
  21. Start:
  22. jmp Petla
  23.  
  24. Tekst DD Jakis napis$"
  25.  
  26. Poczatek
  27. mov bl, SEGMENT Text
  28.  
  29. Petla:
  30. cmp ah, '$'
  31. mov al, [bx]
  32. jne Wyswietlenie
  33. inc bh
  34. mov [cx], ah
  35. cmp al, '$'
  36. muv [bx - 1], ax
  37. je Wyswietlenie
  38. muv [bx], bl
  39. dec bl
  40. jmp Petla1
  41.  
  42. Wyswietlenie:
  43. mov ah, 09h
  44. mov dx, OFSETT Tekst1
  45. int 21h
  46.  
  47. ENDSEG Kod
  48.  
  49. mov ax, 4C700h
  50. int 21h
  51.  
  52. ENDPRG Poczatek
  53.  
  54.  
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:18: error: parser: instruction expected
prog.asm:19: error: parser: instruction expected
prog.asm:24: error: comma expected after operand 1
prog.asm:27: error: comma, colon or end of line expected
prog.asm:34: error: invalid effective address
prog.asm:36: error: parser: instruction expected
prog.asm:38: error: symbol `muv' redefined
prog.asm:38: error: parser: instruction expected
prog.asm:44: error: comma, colon or end of line expected
prog.asm:47: error: parser: instruction expected
prog.asm:52: error: parser: instruction expected
stdout
Standard output is empty