This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class main { | |
public static void main(String[] args) { | |
Ascii a = new Ascii(); //make an object | |
a.setS("An example"); // the string we want to get the sum of it in asii | |
a.asciValue(a.getS()); // pass the string as argument | |
a.print(); // print the result | |
} | |
} | |
class Ascii{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
section .text | |
global oddcnt | |
; <-- EAX oddcnt(EDI n) --> | |
oddcnt: | |
xor eax, eax | |
mov edx, 0 | |
mov eax, edi | |
mov ebx, 2 |