Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

64 Zeilen
729 B

vor 5 Jahren
  1. void print(string);
  2. void print(string)
  3. char* string;
  4. {
  5. #asm
  6. push bp
  7. mov bp,sp
  8. mov si,4[bp]
  9. call 0x0000:0x7C47
  10. pop bp
  11. #endasm
  12. }
  13. void print_stack(argument)
  14. {
  15. #asm
  16. push bp
  17. mov bp,sp
  18. push ds
  19. push ax
  20. mov ax, ss
  21. mov ds, ax
  22. mov si,4[bp]
  23. call 0x0000:0x7C47
  24. pop ax
  25. pop ds
  26. pop bp
  27. #endasm
  28. }
  29. dump_ax_return(input)
  30. void* input;
  31. {
  32. return input;
  33. }
  34. void dump_ax(input)
  35. void* input;
  36. {
  37. // Force the variable in ax
  38. dump_ax_return(input)
  39. #asm
  40. push bp
  41. mov bp,sp
  42. call 0x000:0x7C2A
  43. pop bp
  44. #endasm
  45. }
  46. void print_newline()
  47. {
  48. #asm
  49. printCRLF:
  50. mov ah, #0xE
  51. mov al, #13
  52. int #0x10
  53. mov al, #10
  54. int #0x10
  55. ret
  56. #endasm
  57. }