dvs_lesen_neu.asm 488 B

12345678910111213141516171819202122232425262728293031323334353637
  1. push {r0-r5, lr}
  2. ldr r0, .ev_data
  3. ldr r0, [r0]
  4. ldr r1, .var8005
  5. ldrb r2, [r1]
  6. mov r4, #0x5
  7. mov r3, r2
  8. cmp r3, #0x2
  9. bgt .anderes_startoffset
  10. ldrh r2, [r0, #0x4]
  11. main:
  12. mul r3, r3, r4
  13. lsr r2, r3
  14. mov r4, #0x1F
  15. and r2, r2, r4
  16. strh r2, [r1]
  17. pop {r0-r5, pc}
  18. .anderes_startoffset:
  19. ldrb r5, [r0, #0x5]
  20. lsr r5, #0x7
  21. ldrh r2, [r0, #0x6]
  22. lsl r2, #0x1
  23. add r2, r2, r5
  24. sub r3, r3, #0x3
  25. b main
  26. mov r0, r0
  27. .ev_data:
  28. .word 0x0203f414
  29. .var8005:
  30. .word 0x020370C2